Escape sequences in session ssh
Terminate a frozen/hung SSH session: type tilde then dot
~.
more ssh
all 15 commands →
Check SSH server host key
ssh-keyscan -t ed25519,rsa host 2>/dev/null | ssh-keygen -lf -
Restrict authorized key
echo 'from="10.0.0.0/8",no-agent-forwarding,no-port-forwarding,command="/usr/bin/backup.sh" <pubkey>' >> ~/.ssh/authorized_keys
Connect with specific key
ssh -i ~/.ssh/id_ed25519 user@host
ProxyJump through bastion
ssh -J bastion.example.com user@internal-host
Multi-hop jump chain
ssh -J user@bastion1,user@bastion2 user@target