ssh-copy-id vs PasswordAuthentication no

Harald Dunkel harald.dunkel at
Thu Dec 9 20:21:25 AEDT 2021

Hi folks,

to support "PasswordAuthentication no" it might be undesirable
to add new users with an initial password in /etc/passwd.

I wonder if it would be possible to support a "destination user"
option on the ssh-copy-id command line, e.g.

	ssh-copy-id -i somepath/ -u systemuser1 root at newhost

to add the pubkey to ~systemuser1/.ssh/authorized_keys on the
remote host?


More information about the openssh-unix-dev mailing list