Agent forwarding
Forward local SSH agent to the remote host (use with caution)
ssh -A user@bastion
- tool
- ssh15 commands
More ssh commands
-
eval $(ssh-agent) && ssh-add ~/.ssh/id_ed25519Start agent and load a key for the session
-
cat >> ~/.ssh/config <<'EOF' Host dev HostName 10.0.0.5 User ubuntu IdentityFile ~/.ssh/dev_key ProxyJump bastion EOFShorthand alias: 'ssh dev' triggers all options
-
~.Terminate a frozen/hung SSH session: type tilde then dot
-
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