0% found this document useful (0 votes)
6 views

SSH - Linux Command Library

Uploaded by

abinadabhp13
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

SSH - Linux Command Library

Uploaded by

abinadabhp13
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like