# 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.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.
- reusing ControlMaster bg connections
- smartcard auth
- agent support
- ssh_config support, including
- proxycommand
- Cipher selection
- KDF advances for on-disk key encryption
The list is long and expansive. You'd do better to submit a patch upstream for machine-readable progress output in OpenSSH's 'scp', and bundling that.
For folks who have setups where iTerm2's scp implementation can't connect, you can always download files over an existing ssh connection with this script:
https://raw.githubusercontent.com/gnachman/iTerm2/master/tes...
Upload is a little trickier, but you can copy a file to the pasteboard (e.g., in Finder) and then paste it base64-encoded (Edit > Paste Special > Paste File Base64-Encoded) into base64 -D >> filename.