Hayder Mouhammed
2008-Mar-25 13:51 UTC
OpenSSH_4.7p1, OpenSSL 0.9.8g Host Key Verification Failed
Greetings, I am trying to cross compile OpenSSH 4.7 for ppc with QNX Neutrino as my OS. I have a workstation with QNX on it (x86) and I have linked the utils used by autoconf to their ppc versions. I have been able to successfully build sshd/ssh. I copy the binaries built on the x86 to the ppc, and sshd works great. I can ssh from any machine to it, but when I try to ssh from the ppc machine to another ppc machine or the x86 machine, I get the error "debug1: read_passphrase: can't open /dev/tty: No such device or address Host key verification failed." If I run it with -vvv, I get (see below): I am not running Xserver on the ppc, but it is on the x86 machine. Going through some message boards I have tried setting the DISPLAY environment variable to DISPLAY=IPAddress:1, but this doesn't change the output. I think it wants to output to the console that the rsa fingerprint (etc) is new and i can say yes/no, but this message isnt making it to the console. If I do an ls -al /dev/tty I get: "crw-rw-rw- 1 0 root 1, 4 Jan 01 01:25 /dev/tty". I have also tried touch /dev/tty and this returns with "/dev/tty: No such file or directory". Any suggestions that you may give will be very helpful. Many thanks. --H $ /tmp/ssh -vvv gosbee at 10.4.0.8 OpenSSH_4.7p1, OpenSSL 0.9.8g 19 Oct 2007 debug2: ssh_connect: needpriv 0 debug1: Connecting to 10.4.0.8 [10.4.0.8] port 22. debug1: Connection established. Could not create directory '/gosbee/.ssh'. debug1: identity file /gosbee/.ssh/identity type -1 debug1: identity file /gosbee/.ssh/id_rsa type -1 debug1: identity file /gosbee/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_4.7 debug1: match: OpenSSH_4.7 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.7 debug2: fd 3 setting O_NONBLOCK debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-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,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc, rijndael-cbc at lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc, rijndael-cbc at lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64 at openssh.com ,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64 at openssh.com ,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,zlib at openssh.com,zlib debug2: kex_parse_kexinit: none,zlib at openssh.com,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-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-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,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc, rijndael-cbc at lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc, rijndael-cbc at lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64 at openssh.com ,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64 at openssh.com ,hmac-ripemd160,hmac-ripemd160 at openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,zlib at openssh.com debug2: kex_parse_kexinit: none,zlib at openssh.com debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: mac_setup: found hmac-md5 debug1: kex: server->client aes128-cbc hmac-md5 none debug2: mac_setup: found hmac-md5 debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug2: dh_gen_key: priv key bits set: 125/256 debug2: bits set: 1068/2048 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug3: check_host_in_hostfile: filename /gosbee/.ssh/known_hosts debug3: check_host_in_hostfile: filename /usr/local/etc/ssh_known_hosts debug3: check_host_in_hostfile: filename /gosbee/.ssh/known_hosts debug3: check_host_in_hostfile: filename /usr/local/etc/ssh_known_hosts debug2: no key of type 0 for host 10.4.0.8 debug3: check_host_in_hostfile: filename /gosbee/.ssh/known_hosts2 debug3: check_host_in_hostfile: filename /usr/local/etc/ssh_known_hosts2 debug3: check_host_in_hostfile: filename /gosbee/.ssh/known_hosts debug3: check_host_in_hostfile: filename /usr/local/etc/ssh_known_hosts debug2: no key of type 2 for host 10.4.0.8 debug1: read_passphrase: can't open /dev/tty: No such device or address Host key verification failed.
Ben Lindstrom
2008-Mar-26 13:27 UTC
OpenSSH_4.7p1, OpenSSL 0.9.8g Host Key Verification Failed
On Tue, 25 Mar 2008, Hayder Mouhammed wrote: [..]> debug3: check_host_in_hostfile: filename /usr/local/etc/ssh_known_hosts > debug2: no key of type 2 for host 10.4.0.8 > debug1: read_passphrase: can't open /dev/tty: No such device or address > Host key verification failed.This would imply that OpenSSH can't find a /dev/tty device. Do you have "Dev.tty" driver running and have you creating your ptys devices on the client side? - Ben