What does ssh do?
ssh opens an encrypted remote terminal on another machine. It is how admins manage Linux servers.
ssh [options] user@host
Most useful options
| Option | What it does |
|---|---|
| -p 2222 | use another port |
| -i key | log in with a private key |
| -L 8080:host:80 | local port forwarding (tunnel) |
ssh examples
In security work
Disable password logins and PermitRootLogin, use keys — otherwise brute-force bots will find you within minutes.
Questions about ssh
What is the default SSH port?
22.