Check SSH server host key ssh
Fetch and fingerprint server host keys without connecting
ssh-keyscan -t ed25519,rsa host 2>/dev/null | ssh-keygen -lf -
more ssh
all 15 commands →
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
Local port forward
ssh -L 5432:db.internal:5432 user@bastion -N