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

Taught in

References