Adding SSH keys
I have a server running CentOS 7. I have a multitude of clients varying from Fedora, Ubuntu, CentOS and Windows 10 if that matters. The only way to log into the server is via ssh on the terminal with a ssh key. No password is enable
What I want to do is to be able as super user to allow for one time login via password in the purpose of adding ssh keys from different machines as it would make things easier.
When a client has logged in it should not be possible to use password login again until it is allowed.
This is the content of my /etc/ssh/sshd_config
file with the relevant information
UsePAM yes
PasswordAuthentication no
PubkeyAuthentication yes
ChallengeResponseAuthentication no
Is there any way to do this?
Thanks in advance
ssh-copy-id
with password?