SSH login asks for pasword

August 22, 2015 857 views
Linux Basics Security Networking Ubuntu

Using the bash shell:

scott@Netty ~/Desktop $ ssh root@107.170.255.86
root@107.170.255.86's password: root-pwd
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-57-generic x8664)
or
scott@Netty ~/Desktop $ ssh scott@107.170.255.86
scott@107.170.255.86's password: usr-pwd
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-57-generic x86
64)

I created the key ( deleted and remade) both times without passphrase.

both times - root@nw-custom-services:~/.ssh# cat authorized_keys returned the string that matched my file -- scott@Netty ~/Desktop $ cat ~/.ssh/id_rsa.pub

I've read Etle's posts (2 different ones) and think I've followed up to the "If it works then disable password logins for root ... "
[https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets]

new droplet instance

I just spun-up a new droplet using ssh button on setup page.

scott@Netty ~/Desktop $ ssh root@104.236.145.67
The authenticity of host '104.236.145.67 (104.236.145.67)' can't be established.
ECDSA key fingerprint is 7e:95:30:89:e5:15:18:fc:26:3e:fb:7d:78:fd:fe:72.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '104.236.145.67' (ECDSA) to the list of known hosts.
Agent admitted failure to sign using the key.
root@104.236.145.67's password: - no password is set / can't connect

???

1 comment
  • Partially solved:
    Only for the** new droplet** issue...
    Agent admitted failure to sign using the key.
    after more digging:

    • If you are having this issue, you can confirm that gnome-keyring is at fault on your system by added SSHAUTHSOCK=0 in front of the ssh command.*

    The SSH login worked as advertised
    scott@Netty ~/Desktop $ SSHAUTHSOCK=0 ssh root@107.170.255.86
    Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-57-generic x86_64)

Be the first one to answer this question.