bin/dmenu_ssh

40 lines
739 B
Bash
Executable File

#!/bin/sh
. ~/.dmenurc
dmenu_cmd="dmenu $DMENU_OPTIONS"
HOSTS="alarmPi\nb1.isnet.uk\ndocker666\nHetzner\nhmb.isnet.uk\nkvm.isnet.uk\nmac\nProxmox\ns1.isnet.uk\n"
RESULT=$(printf "$HOSTS" | $dmenu_cmd -i -p "Host:")
case $RESULT in
alarmPi)
st ssh 192.168.0.11
;;
b1.isnet.uk)
st ssh -p666 ray@b1.isnet.uk -t tmux
;;
docker666)
st ssh ray@192.168.0.101 -t tmux
;;
Hetzner)
st ssh ray@116.203.63.174
;;
hmb.isnet.uk)
st ssh -p666 ray@hmb.isnet.uk -t tmux
;;
kvm.isnet.uk)
st ssh -p666 ray@kvm.isnet.uk -t tmux
;;
mac)
st ssh ray@mac -t tmux
;;
Proxmox)
st ssh ray@192.168.0.99 -t tmux
;;
s1.isnet.uk)
st ssh -p666 ray@s1.isnet.uk -t tmux
;;
esac