« Back to SSH: Frequently Asked Questions

What is SSH agent forwarding?

What is SSH agent forwarding?

The agent forwarding feature in SSH allows using your local SSH agent to be reached through an existing SSH connection. This way you don't have to store copies of your private keys on intermediate systems to use them for authentication.

The agent forwarding feature in SSH allows using your local SSH agent to be reached through an existing SSH connection. This way you don’t have to store copies of your private keys on intermediate systems to use them for authentication. While SSH agent forward simplifies things, it also introduces a new risk related to Unix domain socket. If a user on the intermediate system can access the related socket, then it may abuse this connection back to the SSH agent to authenticate on your behalf.

See the ForwardAgent option for more details.

Other questions related to SSH

Related articles

Like to learn more? Here is a list of articles within the same category or having similar tags.

Feedback

Small picture of Michael Boelen

This article has been written by our Linux security expert Michael Boelen. With focus on creating high-quality articles and relevant examples, he wants to improve the field of Linux security. No more web full of copy-pasted blog posts.

Discovered outdated information or have a question? Share your thoughts. Thanks for your contribution!

Mastodon icon