[Bug 2331] ssh-copy-id -i id_new.pub fails to copy that id, also: wrong error msg

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Jan 13 05:17:39 AEDT 2015


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

--- Comment #6 from Elias Toivanen <eatoivan at chem.helsinki.fi> ---
Hi,

Indeed, it is a bug as ssh_config(5) has this to say:

"It is possible to have multiple identity files specified in
configuration files; all these identities will be tried in sequence. 
Multiple IdentityFile directives will add to the list of identities
tried (this behaviour differs from that of other configuration
directives)."

I am not a OpenSSH developer, but IMO the correct thing to do is to
ignore configuration files (add -F /dev/null to the ssh argument list
in ssh-copy-id) so that multiple id files won't screw up the login
test.

I attached a patch that fixes the issue. Devs? Hopefully you accept it.

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


More information about the openssh-bugs mailing list