12/2/24, 10:13 SSH | Basic | Cheat sheet | Linux Command Library
LINUX COMMAND LIBRARY
BASICS TIPS COMMANDS
SSH
Connect to host SOCKS5 proxying
$ ssh [user]@[host] $ ssh -D 9999 [user]@[host]
Generate SSH key End session
$ ssh-keygen -b 4096 $ exit
$ logout
Run a command and exit $ (Ctrl-d)
$ ssh [user]@[host] [command]
Push file
X11 Session Forwarding $ scp [localeFile] [user]@[host]:
[remoteFile]
$ ssh -X [user]@[host]
TCP Port Forwarding Pull file
$ scp [remoteFile] [user]@[host]:.
$ ssh -L [localPort]:[host]:
[port] [user]@[host]
All man pages are copyrighted by their respective authors. Thanks to TLDR and commandlinefu.com
Simon Schubert - [email protected]
https://linuxcommandlibrary.com/basic/ssh 1/2
12/2/24, 10:13 SSH | Basic | Cheat sheet | Linux Command Library
My other projects:
https://linuxcommandlibrary.com/basic/ssh 2/2