[ssh] Add jumphost

This commit is contained in:
Mathieu Maret 2015-04-20 14:31:22 +02:00
parent 534d9217cb
commit ae36cd0942
1 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
#from https://wiki.gentoo.org/wiki/SSH_jump_host
Host *+*
ProxyCommand ssh $(echo %h | sed 's/+[^+]*$//;s/\([^+%%]*\)%%\([^+]*\)$/\2 -l \1/;s/:/ -p /') nc -w1 $(echo %h | sed 's/^.*+//;/:/!s/$/ %p/;s/:/ /')
Host mathux
Hostname mathux.org
Port 22
@ -24,7 +28,7 @@ Host sirius
User android
Host home
Hostname tutabaga.hd.free.fr
Hostname rutabaga.hd.free.fr
Port 22
User pi