Is it possible to use ssh-copy-id once password based logins are disabled? Otherwise, is there an utility for adding an authorized public key to a user or should I edit the
~/.ssh/authorized_keys file manually?
If you have multiple ssh keys and already have one set up for authentication on the server or if you have some other non-password authentication system in place, I believe you can use
Just tried it, and it doesn't look like it's possible.
Confirm that we have passwordless SSH access:
The secondary public key I want to install
Inspecting the source code to diagnose the bug:
Workaround: create a fake private key
Looks like it's refusing to use the existing key in this case, unless I'm missing something.