Unable to add (another) ssh keys for ssh login to an existing droplet
We had a former remote developer working with us who configured the droplet. He has now left the team and we have a new developer located at a different remote location.
We added the ssh keys as provided by our new developer (to windows 8.1 pc using putty) as given in this tutorial: https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-putty-on-digitalocean-droplets-windows-users
But yet we were getting “Disconnected: No supported authentication methods available (server sent: publickey)”
On further research, it looks like we need to add the ssh keys to already running droplet like this: https://www.digitalocean.com/community/questions/add-ssh-key-into-existing-droplet
The solution in above link was to login as root. But the issue is that the ssh keys are configured to login as root only with that developer’s computer. So now what shall we do so that we can have the new developer’s ssh keys added to this running droplet?
Also we tried to login using the root credentials using putty. But it looks like the password based authentication has been disabled.
Please help asap so that we can login and continue further work!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.