quick notes

Jumphost

ssh -J username@jumphost.com username@destination.com

scp using Jumphost

scp -oProxyCommand="ssh -W %h:%p username@jumphost.com" filename.txt username@destination.com:/path

the reverse to pull file

scp -oProxyCommand="ssh -W %h:%p username@jumphost.com" username@destination.com:/path /local/path

X forwarding

ssh -Y username@host.com

X forwarding with sudo

sudo xauth add $(xauth -f ~user/.Xauthority list | tail -1)

Last updated