Report this

What is the reason for this report?

Problem with second SSH key in droplet

Posted on April 23, 2014

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!



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.

No problem! Just glad you got it working.

Try running it with the “-v” flag: <br> <br><pre> <br>ssh -v root@your.ip.address <br></pre> <br> <br>It should provide some information that might help figure out what is going on here. Could you paste the part that beginning with something like: <br> <br><pre> <br>debug1: Authentications that can continue: publickey,password <br></pre>

Heres what i got from the debug, thanks so much for that useful command! <br> <br>debug1: Authentications that can continue: publickey,password <br>debug1: Next authentication method: publickey <br>debug1: Offering RSA public key: /Users/coreykepple/.ssh/id_rsa <br>debug1: Authentications that can continue: publickey,password <br>debug1: Offering RSA public key: /Users/coreykepple/.ssh/github_rsa <br>debug1: Authentications that can continue: publickey,password <br>debug1: Trying private key: /Users/coreykepple/.ssh/id_dsa <br>debug1: Next authentication method: password

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.