bugzilla-daemon at bugzilla.mindrot.org
2017-Oct-15 01:20 UTC
[Bug 2794] New: ssh-copy-id should use the same default identity file as ssh
https://bugzilla.mindrot.org/show_bug.cgi?id=2794
Bug ID: 2794
Summary: ssh-copy-id should use the same default identity file
as ssh
Product: Portable OpenSSH
Version: 7.6p1
Hardware: Other
OS: Linux
Status: NEW
Severity: minor
Priority: P5
Component: ssh-copy-id
Assignee: unassigned-bugs at mindrot.org
Reporter: krumelmonster at zoho.com
ssh-copy-id when invoked without -i will default to the most recently
created identity file while ssh defaults to ~/.ssh/id_dsa, ~/.ssh
id_ecdsa, ~/.ssh/id_ed25519 and ~/.ssh/id_rsa.
The expected behavior is that ssh-copy-id uses the same identity file
that ssh would use so that a successful ssh-copy-id allows pubkey
authentification without further configuration.
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2020-Sep-16 20:21 UTC
[Bug 2794] ssh-copy-id should use the same default identity file as ssh
https://bugzilla.mindrot.org/show_bug.cgi?id=2794
Philip Hands <phil at hands.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEW |RESOLVED
CC| |phil at hands.com
--- Comment #1 from Philip Hands <phil at hands.com> ---
Sorry for ignoring this bug for so long.
The current behaviour is useful, since one can, for example, create a
.pub file containing the several keys you want installed, some from
other machines such that the private keys are not available, and have
them all be added despite it not being something that ssh would be able
to use becuase it does not have matching private key files.
Of course, now that ssh-copy-id attempts to login to test if keys are
already installed, one now needs to specify -f to make it work with
such a combined id file.
Since you find this unhelpful, you just need to follow the advice in
the man page: touch the file for the key that you want installed, and
it will be chosen as the most recent.
HTH
Cheers, Phil.
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2021-Mar-03 22:52 UTC
[Bug 2794] ssh-copy-id should use the same default identity file as ssh
https://bugzilla.mindrot.org/show_bug.cgi?id=2794
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #2 from Damien Miller <djm at mindrot.org> ---
close bugs that were resolved in OpenSSH 8.5 release cycle
--
You are receiving this mail because:
You are watching the assignee of the bug.
Apparently Analagous Threads
- [Bug 3048] New: ssh reads from the wrong directory in user namespace
- [Bug 2196] New: ssh-copy-id: selects "wrong" pubkey
- [Bug 3823] New: SSH on same device ignores MAC restrictions
- AIX make checks issue
- SSH fail to login due to hang over after authenticated.