[Bug 2196] ssh-copy-id: selects "wrong" pubkey
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Thu Nov 26 11:00:24 AEDT 2015
https://bugzilla.mindrot.org/show_bug.cgi?id=2196
--- Comment #4 from Philip Hands <phil at hands.com> ---
The problem is that ssh will use any of id_rsa, id_dsa, id_ecdsa, or
id_ed25519, so it's not completely obvious which of those if should
choose if there's more than one of them.
The current approach allows one to choose.
I note that it's actually documented behaviour:
The default_ID_file is the most recent file that matches:
~/.ssh/id*.pub, (excluding those that match ~/.ssh/*-cert.pub)
so if you create a key that is not the one you want ssh-copy-id
to use, just use touch(1) on your preferred key's .pub file to
reinstate it as the most recent.
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list