Gentoo Archives: gentoo-user

From: Denis <denis.che@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] ssh "Failed to add the host to the list of known hosts"
Date: Tue, 22 May 2007 19:26:10
Message-Id: d9a0a6da0705221218t1c833bd5u84103c1d98156018@mail.gmail.com
1 For some reason, my SSH (openssh-4.5_p1-r1) refuses to remember any
2 hosts I connect to, and even if I keep connecting to the same machine
3 over and over, it still wants me to OK the RSA fingerprint manually.
4
5 Here's the verbose output when I try to connect to a known machine:
6
7 ssh -v XXXXXX.xxxxxx.xxx
8 OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006
9 debug1: Reading configuration data /etc/ssh/ssh_config
10 debug1: Connecting to XXXXXX.xxxxxx.xxx [xxx.xxx.xx.xx] port 22.
11 debug1: Connection established.
12 debug1: identity file /home/myuser/.ssh/identity type -1
13 debug1: identity file /home/myuser/.ssh/id_rsa type -1
14 debug1: identity file /home/myuser/.ssh/id_dsa type -1
15 debug1: Remote protocol version 1.99, remote software version OpenSSH_3.5p1
16 debug1: match: OpenSSH_3.5p1 pat OpenSSH_3.*
17 debug1: Enabling compatibility mode for protocol 2.0
18 debug1: Local version string SSH-2.0-OpenSSH_4.5
19 debug1: SSH2_MSG_KEXINIT sent
20 debug1: SSH2_MSG_KEXINIT received
21 debug1: kex: server->client aes128-cbc hmac-md5 none
22 debug1: kex: client->server aes128-cbc hmac-md5 none
23 debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
24 debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
25 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
26 debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
27 The authenticity of host 'XXXXXX.xxxxxx.xxx (xxx.xxx.xx.xx)' can't be
28 established.
29 RSA key fingerprint is (SOME RSA KEY GOES HERE)
30 Are you sure you want to continue connecting (yes/no)? yes
31
32 Failed to add the host to the list of known hosts
33 (/home/myuser/.ssh/known_hosts).
34
35 debug1: ssh_rsa_verify: signature correct
36 debug1: SSH2_MSG_NEWKEYS sent
37 debug1: expecting SSH2_MSG_NEWKEYS
38 debug1: SSH2_MSG_NEWKEYS received
39 debug1: SSH2_MSG_SERVICE_REQUEST sent
40 debug1: SSH2_MSG_SERVICE_ACCEPT received
41 debug1: Authentications that can continue:
42 publickey,password,keyboard-interactive
43 debug1: Next authentication method: publickey
44 debug1: Trying private key: /home/myuser/.ssh/identity
45 debug1: Trying private key: /home/myuser/.ssh/id_rsa
46 debug1: Trying private key: /home/myuser/.ssh/id_dsa
47 debug1: Next authentication method: keyboard-interactive
48 debug1: Authentications that can continue:
49 publickey,password,keyboard-interactive
50 debug1: Next authentication method: password
51
52 It would not create any files under my /home/myuser/.ssh/ directory.
53 When I tried to create a file there manually, it said permission
54 denied.
55
56 Do I need to be added to some group to fix these permissions?
57 --
58 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] ssh "Failed to add the host to the list of known hosts" Arturo 'Buanzo' Busleiman <buanzo@××××××××××.ar>