Arch Linux (and I assume several other mostly-as-is distros) currently ships a broken version of the ssh-copy-id
script with their openssh
package because the upstream developers decided to merge a "ported" version of the script by Phil Hands back into upstream. While it contains many improvements it does reintroduce the error messages and changes actually not taking any effect in authorized_keys
.
It turns out getting the new script back running is pretty simple with the changes listed below.
I suggest copying the original script from /usr/bin/ssh-copy-id
to a new folder that you prepend to your $PATH
(like $HOME/.local/bin
) and then applying the patch listed here. This way the copy will take effect in $PATH
searches until the issue is resolved so you can safely delete the file.