[Bug 3062] ssh client ignores IdentitesOnly=yes if the identity file isn't found

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Aug 30 20:39:44 AEST 2019


https://bugzilla.mindrot.org/show_bug.cgi?id=3062

--- Comment #1 from Stephen Shirley <kormat at gmail.com> ---
Just discovered a workaround:

  ssh -F /dev/null -o IdentitiesOnly=yes -i
/something/that/doesnt/exist -i /dev/null hostname

This will cause ssh to fail with:

  Warning: Identity file /something/that/doesnt/exist not accessible:
No such file or directory.
  Load key "/dev/null": invalid format
  hostname: Permission denied (publickey).

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list