Escape sequences in session
Terminate a frozen/hung SSH session: type tilde then dot
~.
- tool
- ssh15 commands
More ssh commands
-
ssh-keyscan -t ed25519,rsa host 2>/dev/null | ssh-keygen -lf -Fetch and fingerprint server host keys without connecting
-
echo 'from="10.0.0.0/8",no-agent-forwarding,no-port-forwarding,command="/usr/bin/backup.sh" <pubkey>' >> ~/.ssh/authorized_keysForce-command and restrict source IP in authorized_keys
-
ssh -i ~/.ssh/id_ed25519 user@hostSpecify an identity file explicitly
-
ssh -J bastion.example.com user@internal-hostSingle-hop jump through bastion host
-
ssh -J user@bastion1,user@bastion2 user@targetChain multiple jump hosts in one command