ssh user@host starts a remote shell. Per-host defaults live in ~/.ssh/config: IdentityFile, Port, ProxyJump for bastions, and StrictHostKeyChecking policies. Keys beat passwords—protect private keys with passphrases and ssh-agent. Copy files with scp or rsync -e ssh. Review server settings with sshd -T on the host.
| Task | Command | Tip |
|---|---|---|
| Jump host | ssh -J bastion user@internal | ProxyJump in config for teams |
| Forward agent | ssh -A | Risky on untrusted servers |
| Debug | ssh -vvv | Shows KEX and auth steps |
Related
Linux security commands, bastion hosts, sudo, networking commands