Some Linux Commands – SSH

Linux Basics

SSH is a handy method of connecting to a computer in terminal mode that, if you have the required permissions, allows you to to administrative tasks on a remote system.

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