I have a ssh access via terminal on my mac working fine. Lately I got another computer (Ubuntu 20 Linux). I am trying to set up ssh access, but it just does not let me in, saying “Permission denied (publickey)”.
I added my ssh pub key (id_rsa.pub) on my local computer(Ubuntu) to the Digital Ocean (settings -> security). But, it does not fix the issue.
I also pasted the pub key in ~/.ssh/authorized_keys in the droplet.
What do I need to do to ssh access on my local ubuntu machine?
FYI: I can set password login by changing PasswordAuthentication yes in /etc/ssh/sshd_config in the droplet. However, this is not ssh access without password.
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!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!