ssh-copy-id vs PasswordAuthentication no

Harald Dunkel harald.dunkel at aixigo.com
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/id_ed25519.pub -u systemuser1 root at newhost

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


Regards
Harri


More information about the openssh-unix-dev mailing list