agent forwarding
An SSH option that lets a remote server use your local ssh-agent to authenticate onward connections as you.
Anyone with root on the remote host can use your forwarded agent to log in elsewhere as you.
In more detail
It is convenient for hopping between servers, but root or an attacker on the remote host can use the forwarded agent while you are connected. Enable it only for specific trusted hosts; ProxyJump is usually a safer alternative.
Related terms
- ssh-agent — A background program that holds your decrypted private keys for a session so you do not retype passphrases for every connection.
- SSH config file — The client configuration file, ~/.ssh/config, where Host blocks give short aliases their real hostname, user, port and identity file.
- private key — The secret half of a key pair, which proves its holder's identity and must never be shared.
Taught in
- SSH Keys, The Agent And The Config File — Linux Fundamentals & Systems Administration