File: host_plus

package info (click to toggle)
ruby-net-ssh 1%3A7.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,804 kB
  • sloc: ruby: 16,999; makefile: 5
file content (10 lines) | stat: -rw-r--r-- 347 bytes parent folder | download | duplicates (7)
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