4 ms·
I've used it in the past to ssh via bastion hosts and the like.
by lclarkmichalek 11y ago
I've used it in the past to ssh via bastion hosts and the like.
- mturmon 11y agoYes. My config is something like this: # proxy n02 connections through bastion host n02.university.edu ProxyCommand ssh bastion.university.edu -W %h:%p 2> /dev/null Almost all my remote shells require a similar setup.
- gnachman 11y agoSeems like this might be a common enough pattern that I could support it. I'll have a look.
- devonkim 11y agoYou can also use ProxyCommand to perform filtering via sed / awk / some shell script on the hostname passed in. Examples: https://wiki.gentoo.org/wiki/SSH_jump_host https://wiki.gentoo.org/wiki/SSH_jump_host I have over 300 hosts defined in my .ssh/config file and it's indispensable to have all these options, especially when mixing in 2FA jump hosts into the mix.