Search This Blog

Saturday 29 August 2020

SSH Agent forwarding

Resolution

To configure SSH agent forwarding for Linux

  1. From your local machine, add your private key to the authentication agent.

    For Linux, use the following command:

    ssh-add -c mykeypair.pem

  2. Connect to your NAT instance using the -A option to enable SSH agent forwarding, for example:

    ssh -A ec2-user@54.0.0.123

No comments:

Post a Comment