ccontavalli / ssh-ident

Different agents and different keys for different projects, with ssh.
Other
965 stars 71 forks source link

ssh-ident doesn't work with ssh's `-M` option #23

Closed mc0e closed 8 years ago

mc0e commented 8 years ago

I use ssh's ControlMaster and associated configuration in order to get re-use of ssh connections for fast session startup.

It seems that when ssh is aliased to ssh-ident, then ssh -M server fails to use the right agent. It loads keys as expected in the correct agent, but then fails to use the existing connection or the ssh-agent that I'd expect it to use. The connection fails since the required key is not available.

This makes a huge difference to me, as some of my routine operations involve running hundreds of ssh commands over ssh from a single scripted operation.

mc0e commented 8 years ago

I may have a broader problem. Without the -M option, I'm seeing similar failures to offer the keys as expected.

mc0e commented 8 years ago

I have found an issue, but it's not as described. This ticket can close.

ccontavalli commented 8 years ago

ok, closing as recommended :)