To login without password, I use ssh-copy-id I ~/.ssh/key_name root@server_ip
.
If I don't copy my public key, then each time I use ssh root@server_ip
I would be asked for my password.
Now I want to create an automated script for checking the installation of Ubuntu instances of our colleagues.
I want to know whether they have configured their Ubuntu correctly or not.
One item I should check is to see if they have copied their public keys to our server, so that they can connect without password.
How can I know it? Is there a way for me to know it?