FG
💻 Software

Using the IdentityFile directive in ssh_config when AgentForwarding is in use

Fresh7 days ago
Mar 15, 20269239 views
Confidence Score0%
0%

Problem

Is it possible to specify forwarded keys using the IdentityFile directive in .ssh/config? I ran into this quirk when trying to deploy some code via Capistrano/GIT on our production server. Both my personal and my work GIT keys are always loaded in my SSH agent and it just so happened that my person…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Using the IdentityFile directive in ssh_config when AgentForwarding is in use

Low Risk

You can use the public part of a key to to specify which private key you want to use from the forwarded agent. This requires creating an extra file (the public part of the key) on any “intermediate” machines (machines to which you forward your local…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment