I just created a new droplet with a public key, but when I tried to ssh to the server, I get public key permission error. The server I am trying to get into is: 138.68.8.16
Thank you in advance!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @voltrue2
I would recommend you to check this two articles as they should help you to sort this out:
https://www.digitalocean.com/community/tutorials/how-to-set-up-ssh-keys--2 https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/
Let me know if you have any questions.
Hi @voltrue2,
It’s possible the key is not correct anymore or something is missing.
I’ll recommend you to take the key from the following file
cat ~/.ssh/id_pub.rsa
And put the contents on your droplet in the following place manually
vi ~/.ssh/authorized_keys
Once you have, you should be able to login without a problem.
Regards, KDSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.