tsshmenu - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
tsshmenu (168B)
---
1 #!/bin/sh
2
3 gethosts() {
4 sed "/Host/s/Host //p;d" $HOME/.ssh/config | grep -v '*' | cut -d\ -f1
5 }
6
7 TARGET=$(gethosts | pick)
8
9 test -n "$TARGET" && exec ssh $TARGET