[Bug 2110] ssh-copy-id fails on nonexisting private key

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Sep 30 23:14:17 EST 2013


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

Ken Coar <Ken.Coar+Mindrot-BZ at GMail.Com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Ken.Coar+Mindrot-BZ at GMail.C
                   |                            |om
           Priority|P5                          |P3

--- Comment #1 from Ken Coar <Ken.Coar+Mindrot-BZ at GMail.Com> ---
Although creating an empty corresponding private-key file will get past
the "ERROR: failed to open ID file" problem, it doesn't solve the issue
-- because the empty privkey file will cause the next step to fail:

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s),
to filter out any that are already installed

/usr/bin/ssh-copy-id: WARNING: All keys were skipped because they
already exist on the remote system.

That last error message is erroneous, because the ssh *login* failed,
not because the key was already in the remote host's authorized_keys
file.

I used to be able to use ssh-copy-id to add a colleague's public key to
a remote host without having to know his private key.  This change no
longer allows that, and isn't controllable by options.

Therefore, I consider this change a REGRESSION.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list