By pangolino91
I have two computers, one OS Mac and one OS Windows. Using the Mac i managed to add the SSH public key and I can log into the droplet from the local machine terminal. On the one using windows, however, everytime I try to log in it throws the error “permission denied (publickey)”. I tried to follow the tutorials:
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!
I think you managed to generate two keys, first one from you Mac and the second one from your Windows machine.
I would recommend to use the same private key (from your Mac) on both machines.
You can use multiple pub keys for the same user but is more to explain, but the short answer is to use the same PrivateKey from your Mac on Windows too.
Hello,
If the PasswordAuthentication is currently disabled you can try to enable it just temporary in order to access the droplet with the root password and upload your ssh-key. Once this is done you can again disable the PasswordAuthentication in order to keep the droplet secure.
Dropbox in case you don’t have any other server to us.
/etc/ssh/sshd_config~/.ssh/authorized_keys/etc/ssh/sshd_configHope that this helps! Regards, Alex
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.