ssh Command Examples

Secure Shell is a protocol used to securely log onto remote systems. It can be used for logging or executing commands on a remote server. More information: https://man.openbsd.org/ssh.

ssh {{username}}@{{remote_host}}

ssh -i {{path/to/key_file}} {{username}}@{{remote_host}}

ssh {{username}}@{{remote_host}} -p {{2222}}

ssh {{username}}@{{remote_host}} -t {{command}} {{command_arguments}}

ssh -D {{1080}} {{username}}@{{remote_host}}

ssh -L {{9999}}:{{example.org}}:{{80}} -N -T {{username}}@{{remote_host}}

ssh -J {{username}}@{{jump_host}} {{username}}@{{remote_host}}

<Enter> ~ .