Question

Problem with second SSH key in droplet

Hello,

I manually added my public ssh key to the authorized keys file on my droplet, but i am not sure exactly how i can access the server from my local shell as it keeps prompting me to enter a password when i try to ssh root@<ip.address> . I have reloaded the ssh and rebooted the droplet; any advice would be appreciated!


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

No problem! Just glad you got it working.

wow yup i typed it wrong, as i was waiting for a response i went over it again and 1 character was not capitalized; I’m finally into the server from my local machine. While i do not believe my problems are over concerning launching my site; 1 large hurdle has been overcome. I can offer nothing but the deepest gratitude for you’re help Andrew, thanks for looking out for the new guys!

Are you positive that you typed in the ssh key correctly? The server checks the key and then rejects it before moving onto asking for a password. <br> <br>I can’t help but notice that you seem to have another ssh key for GitHub. There is a handy command named “ssh-import-id” that can import the public ssh key for a user from GitHub. <br> <br><pre> <br>ssh-import-id gh:$(github_username) <br></pre> <br> <br>That might be the quickest solution for you.