blob: b3177dbc616b8889444f6ec24046783164452593 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# Jump through hosts with one SSH call
# via <http://glandium.org/blog/?p=308>
Host *+*
ProxyCommand ssh $(echo %h | sed 's/+[^+]*$//;s/\([^+%%]*\)%%\([^+]*\)$/\2 -l \1/;s/:/ -p /') PATH=.:\$PATH nc -w1 $(echo %h | sed 's/^.*+//;/:/!s/$/ %p/;s/:/ /')
Host office-offsite
HostName work-gateway+office-workstation
Host test.host
Compression yes
|