ssh login does not work using key without password

Похоже, что id_dsa не существует и он пытается id_ecdsa, но он есть и я пытался регенерировать его несколько раз и все равно не работает. у кого-нибудь есть такая же проблема и решена? или кто-нибудь знает, как с этим справиться?

hadoop@i5:~$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/opt/hadoop/.ssh/id_dsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /opt/hadoop/.ssh/id_dsa.
Your public key has been saved in /opt/hadoop/.ssh/id_dsa.pub.
The key fingerprint is:
2f:ea:1d:fa:eb:3b:86:ac:5f:32:0e:10:e1:09:c5:82 hadoop@i5
The key's randomart image is:
+--[ DSA 1024]----+
|ooo              |
|Eo.o             |
| .+              |
|   .             |
|  .     S        |
|   .     .       |
|    ..o.+ .      |
|     ooBoo       |
|    .+*+*+       |
+-----------------+
hadoop@i5:~$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
hadoop@i5:~$ ssh localhost -v
OpenSSH_6.6.1, 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 localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /opt/hadoop/.ssh/id_rsa type -1
debug1: identity file /opt/hadoop/.ssh/id_rsa-cert type -1
debug1: identity file /opt/hadoop/.ssh/id_dsa type 2
debug1: identity file /opt/hadoop/.ssh/id_dsa-cert type -1
debug1: identity file /opt/hadoop/.ssh/id_ecdsa type -1
debug1: identity file /opt/hadoop/.ssh/id_ecdsa-cert type -1
debug1: identity file /opt/hadoop/.ssh/id_ed25519 type -1
debug1: identity file /opt/hadoop/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7 pat OpenSSH_6.6.1* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA a5:59:74:76:e5:37:42:3a:3b:57:50:be:a6:69:57:63
debug1: Host 'localhost' is known and matches the ECDSA host key.
debug1: Found key in /opt/hadoop/.ssh/known_hosts:1
debug1: ssh_ecdsa_verify: signature correct
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,password
debug1: Next authentication method: publickey
debug1: Trying private key: /opt/hadoop/.ssh/id_rsa
debug1: Offering DSA public key: /opt/hadoop/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /opt/hadoop/.ssh/id_ecdsa
debug1: Trying private key: /opt/hadoop/.ssh/id_ed25519
debug1: Next authentication method: password
hadoop@localhost's password: 
-1
04.07.2016, 06:39
0 ответов

Теги

Похожие вопросы