ssh client prioritises ssh-agent keys over -i

Bug #828585 reported by Chris Jones
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openssh (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

I have many ssh keys loaded into my ssh agent. If I specify a specific key on the command line with ssh -i, the ssh client still offers all of my agent keys before trying the one I specified.
This has the unfortunate consequences of:
 * hitting login attempt limits on (many?) ssh daemons
 * slowing down the login process

Revision history for this message
Chris Jones (cmsj) wrote :

While I do think the -i option might be useful to respect in this situation, a sufficiently strict .ssh/config that uses "IdentitiesOnly" appears to be a viable workaround here

Changed in openssh (Ubuntu):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openssh (Ubuntu):
status: New → Confirmed
Revision history for this message
Ken Sharp (kennybobs) wrote :

I would expect the -i to take priority as command-line options usually do take precedence, unless they are somehow disabled by the host.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.