-rw------- 1 dev shop 1678 Oct 21 18:06 authorized_keys
-rw------- 1 dev shop 840 May 29 09:40
authorized_keys.orig
-rw------- 1 dev shop 1160 Apr 10 2007 config
-rw------- 1 dev shop 668 Apr 14 2004 id_dsa
-rw-r--r-- 1 dev shop 610 Apr 13 2004 id_dsa.pub
-rw------- 1 dev shop 159603 Nov 17 18:08 known_hosts
-rw-r--r-- 1 root root 104146 Jun 22 2005 known_hosts.062205
-rw-r--r-- 1 root root 116023 Jan 10 2008 known_hosts.bak
Here it is on hostA
-rw------- 1 dev dev 3615 Nov 17 17:36 authorized_keys
-rw------- 2 dev dev 668 Nov 14 2007 id_dsa
-rw-r--r-- 1 dev dev 609 Nov 14 2007 id_dsa.pub
-rw-r--r-- 1 dev dev 609 Nov 17 17:43 id_dsa.pub.orig
-rw------- 2 dev dev 668 Nov 14 2007 identity
-rw------- 1 dev dev 887 Nov 14 2007 id_rsa
-rw-r--r-- 1 dev dev 229 Nov 14 2007 id_rsa.pub
-rw------- 1 dev dev 7289 Oct 29 11:54 known_hosts
I can ssh with no password from hostA to hostB. But I cannot go from hostB
to hostA.
When I am on hostB, this is the output from ssh -vvv hostA:
[dev@hostB .ssh]$ ssh -vvv hostA
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /home/dev/.ssh/config
debug1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug2: ssh_connect: needpriv 0
debug1: Connecting to hostA [a.b.c.d] port 22.
debug1: Connection established.
debug1: identity file /home/dev/.ssh/identity type -1
debug1: identity file /home/dev/.ssh/id_rsa type -1
debug3: Not a RSA1 key file /home/dev/.ssh/id_dsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /home/dev/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version
OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,rijndael-cbc (at) lysator.liu (dot) se [email concealed]
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,rijndael-cbc (at) lysator.liu (dot) se [email concealed]
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 (at) openssh (dot) com [email concealed],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 (at) openssh (dot) com [email concealed],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-he
llman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,rijndael-cbc (at) lysator.liu (dot) se [email concealed],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
bc,rijndael-cbc (at) lysator.liu (dot) se [email concealed],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 (at) openssh (dot) com [email concealed],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160 (at) openssh (dot) com [email concealed],hmac-sha1-9
6,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 139/256
debug2: bits set: 1059/2048
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /home/dev/.ssh/known_hosts
debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
debug3: check_host_in_hostfile: filename /home/dev/.ssh/known_hosts
debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
debug3: check_host_in_hostfile: filename /home/dev/.ssh/known_hosts
debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
debug2: no key of type 0 for host hostA
debug3: check_host_in_hostfile: filename /home/dev/.ssh/known_hosts2
debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts2
debug3: check_host_in_hostfile: filename /home/dev/.ssh/known_hosts
debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts
debug2: no key of type 2 for host hostA
Host key verification failed.
debug1: Calling cleanup 0x8062c30(0x0)
The public key for hostA is in the known_hosts file of hostB.
Here are the uncommented lines only from sshd_config on hostA, which is
the same as the file from hostB
SyslogFacility AUTHPRIV
X11Forwarding yes
Subsystem sftp /usr/libexec/openssh/sftp-server
Here is the directory listing on hostB
-rw------- 1 dev shop 1678 Oct 21 18:06 authorized_keys
-rw------- 1 dev shop 840 May 29 09:40
authorized_keys.orig
-rw------- 1 dev shop 1160 Apr 10 2007 config
-rw------- 1 dev shop 668 Apr 14 2004 id_dsa
-rw-r--r-- 1 dev shop 610 Apr 13 2004 id_dsa.pub
-rw------- 1 dev shop 159603 Nov 17 18:08 known_hosts
-rw-r--r-- 1 root root 104146 Jun 22 2005 known_hosts.062205
-rw-r--r-- 1 root root 116023 Jan 10 2008 known_hosts.bak
Here it is on hostA
-rw------- 1 dev dev 3615 Nov 17 17:36 authorized_keys
-rw------- 2 dev dev 668 Nov 14 2007 id_dsa
-rw-r--r-- 1 dev dev 609 Nov 14 2007 id_dsa.pub
-rw-r--r-- 1 dev dev 609 Nov 17 17:43 id_dsa.pub.orig
-rw------- 2 dev dev 668 Nov 14 2007 identity
-rw------- 1 dev dev 887 Nov 14 2007 id_rsa
-rw-r--r-- 1 dev dev 229 Nov 14 2007 id_rsa.pub
-rw------- 1 dev dev 7289 Oct 29 11:54 known_hosts
What am I missing? Thanks for your help.
Chris
[ reply ]