Linux
Command
Library
Basics
Tips
Commands
SSH
Connect to host
$
ssh
[user]@[host]
Generate SSH key
$
ssh-keygen
-b 4096
Run a command and exit
$
ssh
[user]@[host] [command]
X11 Session Forwarding
$
ssh
-X [user]@[host]
TCP Port Forwarding
$
ssh
-L [localPort]:[host]:[port] [user]@[host]
SOCKS5 proxying
$
ssh
-D 9999 [user]@[host]
End session
$ exit
$ logout
$ (Ctrl-d)
Push file
$
scp
[localeFile] [user]@[host]:[remoteFile]
Pull file
$
scp
[remoteFile] [user]@[host]:.
Copied to clipboard