Bug 3004

Summary: ssh-add does not honor IdentityAgent
Product: Portable OpenSSH Reporter: Ryo IGARASHI <rigarash>
Component: ssh-addAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED WONTFIX    
Severity: enhancement CC: djm
Priority: P5    
Version: 7.9p1   
Hardware: All   
OS: All   

Description Ryo IGARASHI 2019-05-07 15:39:12 AEST
From OpenSSH 7.3p1, ssh_config has an option IdentityAgent so that I can unset SSH_AUTH_SOCK for invoking ssh with ssh-agent.

For example, if I have the following line, you don't have to set SSH_AUTH_SOCK:

$ cat $HOME/.ssh/config
Host *
  IdentityAgent ~/.ssh/S.ssh-agent

However, ssh-add only looks for SSH_AUTH_SOCK. It would be nice for ssh-add to honor config(s) of IdentityAgent.
Comment 1 Damien Miller 2019-05-17 13:49:54 AEST
ssh-agent doesn't read ~/.ssh/config and we don't have any plans to make it do so.
Comment 2 Damien Miller 2021-04-23 14:55:48 AEST
closing resolved bugs as of 8.6p1 release