LinuxCommandLibrary

SSH

Connect to host

$ ssh [user]@[host]
copy

Run a command and exit

$ ssh [user]@[host] [command]
copy

X11 Session Forwarding

$ ssh -X [user]@[host]
copy

TCP Port Forwarding

$ ssh -L [localPort]:[host]:[port] [user]@[host]
copy

SOCKS5 proxying

$ ssh -D 9999 [user]@[host]
copy

End session

$ Ctrl+d
copy

Push file

$ scp [localeFile] [user]@[host]:[remoteFile]
copy

Pull file

$ scp [remoteFile] [user]@[host]:.
copy
Copied to clipboard