By AaronDay
Hi all,
I am trying to SSH from OSX to my Ubuntu droplet.I have checked to make sure my public SSH keys match up and I have already gone through the process of a full reinstall. I’ve also applied
chmod -R go= ~/.ssh chown -R $USER:$USER ~/.ssh
logged out and then back in. Nothing works. I’m thankful the browser CLI is available but, I need to use a local terminal. Any advice welcome.
Many thanks. Aaron.
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!
Many thanks for that. I’ve done everything you suggest (while getting stuck in the console caps lock loop) and still get stalled at:
Permission denied (publickey, password)
I’ve deleted all the ssh keys from my machine and generated new ones and then followed: Manually from the Droplet without Password-Based Access instructions.
No matter what I do I can’t access the server with the password I supplied or keys. I’ve toggled PasswordAuthentication in sshd_config both ways and still no luck.
Looking online I see many others have a similar issue with remote login to DO droplets. The supplied documentation offers many possibilities but no straightforward path to basic function. Does DO offer paid direct support? I need to get this working soon otherwise I’ll need to try a different supplier (I don’t want to since I’ve already invested a bunch of time getting my Ubuntu server installed with the SW I need via browser CLI)
Kind regards,
Aaron
Hello, @AaronDay
If you have multiple SSH keys, you may need to specify the path of your private key using the -i flag, as in
ssh -i /path/to/private/key username@203.0.113.0
Make sure to substitute the path to your private key.
As @baraboom already mentioned you can double check our existing tutorial on how to use ssh keys with DO droplets:
https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/
and https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/openssh/
Hope that this helps! Regards, Alex
Hi, @aalborz2020
Do you have multiple SSH keys on your machine? If that is the case have you tried to specify the exact key to connect to your DO droplet.
If you have multiple SSH keys, you may need to specify the path of your private key using the -i flag, as in
ssh -i /path/to/private/key username@203.0.113.0
Make sure to substitute the path to your private key.
As @baraboom already mentioned you can double check our existing tutorial on how to use ssh keys with DO droplets:
https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/
and https://www.digitalocean.com/docs/droplets/how-to/connect-with-ssh/openssh/
Hope 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.