Wazaterm » Linux Commands » ssh

How to use ssh Linux command

ssh is a command for logging into a remote machine and for executing commands on a remote machine. It is intended to replace rlogin and rsh, and provide secure encrypted communications between two untrusted hosts over an insecure network.

Usage

How to prevent SSH from timing out

$ ssh -o "ServerAliveInterval 60"

Reverse port forwarding with ssh to access to my home PC through the proxy server

$ ssh -N -R :8000:localhost:22 username@proxy_server # at my home PC