Create ~/.ssh/config
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 3 years ago