SSH Config Cheat Sheet/Agent forwarding in config

Enable agent forwarding for specific hosts only.

Section: Client Config Advanced

Agent forwarding in config

sshconfig
sshconfig
Host jumpbox
  ForwardAgent yes
Explanation

Enable agent forwarding for specific hosts only.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Client Config Advanced
ProxyJump in config
Configure a jump host once for repeated use.
OpenIn sheetsshconfigsame section
Multiplexing in config
Enable connection sharing globally or per host.
OpenIn sheetsshconfigsame section
Local forward in config
Attach a local tunnel to a host alias.
OpenIn sheetsshconfigsame section
Use a specific SSH agent socket
Point a host entry at a chosen agent socket.
OpenIn sheetsshconfigsame section
LocalCommand in config
Run a local command after a successful connection.
OpenIn sheetsshconfigsame section
Basic host alias
Create a short alias in ~/.ssh/config.
OpenIn sheetsshconfig2 tag match