← Back to team overview

ubuntu-phone team mailing list archive

SSH From Phone Using Keys Errors

 

I had RSA keys set up so that I could ssh to my home server and after OTA-10, these no longer work - it gives an "Agent admitted failure to sign using the key." error.

Having a quick Google, ssh-add is suggested to fix this, but that doesn't work.  I've run it with debug output and I get this output (the ssh-add would account for why it's trying twice).

OpenSSH_6.7p1 Ubuntu-5ubuntu1.4, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to <My IP> [<My IP>] port <My Port>.
debug1: Connection established.
debug1: identity file /home/phablet/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/phablet/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/phablet/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/phablet/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/phablet/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/phablet/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/phablet/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/phablet/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.7p1 Ubuntu-5ubuntu1.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.8
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.8 pat OpenSSH_5* compat 0x0c000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr umac-64@xxxxxxxxxxx none
debug1: kex: client->server aes128-ctr umac-64@xxxxxxxxxxx none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: RSA <My host key>
debug1: Host '[<My IP>]:<My port>' is known and matches the RSA host key.
debug1: Found key in /home/phablet/.ssh/known_hosts:3
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/phablet/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
Agent admitted failure to sign using the key.
debug1: Offering RSA public key: phablet@ubuntu-phablet
debug1: Server accepts key: pkalg ssh-rsa blen 279
Agent admitted failure to sign using the key.
debug1: Trying private key: /home/phablet/.ssh/id_dsa
debug1: Trying private key: /home/phablet/.ssh/id_ecdsa
debug1: Trying private key: /home/phablet/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).

Do I just need to regenerate the keys on my phone?  I'm guessing that may fix it, but I thought I'd leave my phone as-is, for the moment, in case you want any more debug or testing information.

Cheers

Phil


Follow ups