Interview Prep/Linux/Networking, SSH & Scheduling

What is ssh-agent and agent forwarding?

IntermediateConceptNetworking, SSH & Scheduling
Answer

ssh-agent holds decrypted private keys in memory so you type the passphrase once (ssh-add). Agent forwarding (ssh -A) lets remote hosts use your local agent, for example to git clone from a bastion. Risk: root on that remote host can use your agent socket to authenticate as you while you are connected. Prefer ProxyJump over forwarding.

All Linux questions Roadmap: Linux

More on Networking, SSH & Scheduling