Essential SSH commands
The following ssh commands are used by me in everyday development activity. So it prompted me to write a blog post about the essential SSH commands during java development. SSH to a remote server using username and password ssh username@remote-server-host-or-ip SSH to a remote server with a specific port (other than 22) ssh username@remote-server-host-or-ip -p 26 SSH to a remote server using private key (or identity file) ssh -i /path/to/private-key.pem username@remote-server-host-or-ip SSH to a remote server with agent forwarding The following command forwards your SSH auth schema to the remote host. So you can use SSH over there as if you were on your local machine. ssh -A username@remote-server-host-or-ip ssh -A -i /path/to/private-key.pem username@remote-server-host-or-ip Setup port forwarding with remote server The following command forwards traffic http://localhost:8080 <--> http://remote-server-host-or-ip:9090 http://localhost:8081 <...