Connect with specific key ssh
Specify an identity file explicitly
ssh -i ~/.ssh/id_ed25519 user@host
more ssh
all 15 commands →
ProxyJump through bastion
ssh -J bastion.example.com user@internal-host
Multi-hop jump chain
ssh -J user@bastion1,user@bastion2 user@target
Local port forward
ssh -L 5432:db.internal:5432 user@bastion -N
Remote port forward
ssh -R 8080:localhost:3000 user@vps -N
Dynamic SOCKS proxy
ssh -D 1080 user@vps -N -f