> Some time in the past I lost key authentication when connecting from my > laptop to my server. Password works, but that's sent clear text so I want > to > get the server's /etc/ssh/sshd_config correct. > > When I try to connect to my server this is the output: > > [rshepard@caddis ~]$ ssh -v salmo > OpenSSH_6.7p1, OpenSSL 1.0.1k 8 Jan 2015 > debug1: Reading configuration data /home/rshepard/.ssh/config > debug1: Reading configuration data /etc/ssh/ssh_config > debug1: Connecting to salmo [192.168.55.1] port nnnn. > debug1: fd 3 clearing O_NONBLOCK > debug1: Connection established. > debug1: identity file /home/rshepard/.ssh/id_dsa type 2 > debug1: key_load_public: No such file or directory > debug1: identity file /home/rshepard/.ssh/id_dsa-cert type -1 > debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7 > debug1: match: OpenSSH_6.7 pat OpenSSH* compat 0x04000000 > debug1: Enabling compatibility mode for protocol 2.0 > debug1: Local version string SSH-2.0-OpenSSH_6.7 > debug1: SSH2_MSG_KEXINIT sent > debug1: SSH2_MSG_KEXINIT received > debug1: kex: server->client aes128-ctr [email protected] none > debug1: kex: client->server aes128-ctr [email protected] none > debug1: sending SSH2_MSG_KEX_ECDH_INIT > debug1: expecting SSH2_MSG_KEX_ECDH_REPLY > debug1: Server host key: ECDSA > 1c:f8:ee:fd:eb:fe:a8:dd:b4:1c:bd:ad:6d:cd:5e:e9 > debug1: Host '[salmo]:nnnn' is known and matches the ECDSA host key. > debug1: Found key in /home/rshepard/.ssh/known_hosts:28 > debug1: SSH2_MSG_NEWKEYS sent > debug1: expecting SSH2_MSG_NEWKEYS > debug1: SSH2_MSG_NEWKEYS received > debug1: Roaming not allowed by server > 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 DSA public key: /home/rshepard/.ssh/id_dsa > debug1: Authentications that can continue: publickey > debug1: No more authentication methods to try. > Permission denied (publickey). > > This suggests that I've lost my public key on the server. Is that the > situation? If so, I need to read up on how to re-generate my RSA/DSA key > pair using my passphrase, then put the public and private keys in the > correct hosts.
Check the permissions on your .ssh directory. It should be 700. It is trying to access the key, it just can't find it. That could be permissions. _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
