I apologize but there isn’t enough information here to really provide much help. Have you tried this article here
Some things to note. Make sure you are including the OpenSSH public key and not the putty public key. An Open SSH key starts with
ssh-rsa and is the one you need to include on the settings page.
In your Putty SSH settings go to
Auth Then make sure the box
Private key file for authentication points to the matching .ppk file. Make sure this .ppk file is located in a location that your local computer can read. If it’s not, you will get the cannot read private key error.
Once thing of note, if it’s an existing droplet, and you did not include the key on create, updating the settings -> security section won’t work. The DO Control panel can only add keys to new droplets. If you need to add your key to an existing droplet, please do the following.
- Log into the droplet over SSH with a password.
- Open the ~/.ssh/authorized_keys file with something like nano. You can find a guide on using nano here (This whole guide is great if you are new to working with a terminal btw)
- Make a new line and copy and paste the public key over. If you are using putty, you can copy it with Ctrl + C then right click on the putty window. Right click with putty is paste.
- Save the file and exit out. Now you should be able to log in with the key pair.
This tutorial runs through creating SSH keys with PuTTY to connect to your virtual server.