linux: Enable SSH Agent Forwarding (moved)

  1. Create ~/.ssh/config

  2. Fill it with

Host [host address]
     ForwardAgent yes

3. Add keys to ssh-agent (command for macOS)

ssh-add -K ~/.ssh/id_rsa

Ssh to remote host and check that forwarding is working

echo "$SSH_AUTH_SOCK"

Last updated

Was this helpful?