<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Host key verification failed error while doing passwordless ssh in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/host-key-verification-failed-error-while-doing-passwordless-ssh/m-p/5980265#M483402</link>
    <description>&lt;P&gt;&amp;gt;3) copy the file id_rsa.pub to the server B&lt;BR /&gt;&amp;gt;4) After this server A to&amp;nbsp; server B connection successful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems some steps are missing?&lt;/P&gt;&lt;P&gt;1) If you want to go both ways, you copy id_rsa too.&amp;nbsp; (But better if this is a common NFS mounted directory.&amp;nbsp; ;-)&lt;/P&gt;&lt;P&gt;2) Append id_rsa.pub to authorized_keys&lt;/P&gt;&lt;P&gt;3) Make sure the permissions on these files is correct:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Files shouldn't be read or writable except by user.&amp;nbsp; For the .pub file, read is ok.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2013 08:39:19 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2013-03-01T08:39:19Z</dc:date>
    <item>
      <title>Host key verification failed error while doing passwordless ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-key-verification-failed-error-while-doing-passwordless-ssh/m-p/5980011#M483399</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to enable a passwordless connection&amp;nbsp; for a normal user between two servers. Eg&amp;gt; server A to server B and viceversa,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps i followed is&lt;/P&gt;&lt;P&gt;1) Logged on the server A as normal user&lt;/P&gt;&lt;P&gt;2) Did &amp;nbsp;ssh-keygen&lt;/P&gt;&lt;P&gt;3) copy the file id_rsa.pub to the server B&lt;/P&gt;&lt;P&gt;4) After this server A to&amp;nbsp; server B connection successfull&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Now&amp;nbsp; when i am configuring for that user from server B to server A i am getting the below error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Host key verification failed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find below the output with ssh -vvv option&lt;/P&gt;&lt;P&gt;===========================================================================================&lt;/P&gt;&lt;P&gt;$ ssh -vvv&amp;nbsp;serverB date&lt;BR /&gt;OpenSSH_4.7p1+sftpfilecontrol-v1.2-hpn12v17, OpenSSL 0.9.7m 23 Feb 2007&lt;BR /&gt;HP-UX Secure Shell-A.04.70.010, HP-UX Secure Shell version&lt;BR /&gt;debug1: Reading configuration data /opt/ssh/etc/ssh_config&lt;BR /&gt;debug3: RNG is ready, skipping seeding&lt;BR /&gt;debug2: ssh_connect: needpriv 0&lt;BR /&gt;debug1: Connecting to hpux69a2 [199.52.244.66] port 22.&lt;BR /&gt;debug1: Connection established.&lt;BR /&gt;debug3: Not a RSA1 key file /u09/gis/husl01d/.ssh/id_rsa.&lt;BR /&gt;debug2: key_type_from_name: unknown key type '-----BEGIN'&lt;BR /&gt;debug3: key_read: missing keytype&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug3: key_read: missing whitespace&lt;BR /&gt;debug2: key_type_from_name: unknown key type '-----END'&lt;BR /&gt;debug3: key_read: missing keytype&lt;BR /&gt;debug1: identity file /u09/gis/husl01d/.ssh/id_rsa type 1&lt;BR /&gt;debug1: identity file /u09/gis/husl01d/.ssh/id_dsa type -1&lt;BR /&gt;debug1: Remote protocol version 2.0, remote software version OpenSSH_4.4p1-hpn12v11&lt;BR /&gt;debug1: match: OpenSSH_4.4p1-hpn12v11 pat OpenSSH*&lt;BR /&gt;debug1: Enabling compatibility mode for protocol 2.0&lt;BR /&gt;debug1: Local version string SSH-2.0-OpenSSH_4.7p1+sftpfilecontrol-v1.2-hpn12v17&lt;BR /&gt;debug2: fd 3 setting O_NONBLOCK&lt;BR /&gt;debug3: RNG is ready, skipping seeding&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT sent&lt;BR /&gt;debug1: SSH2_MSG_KEXINIT received&lt;BR /&gt;debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1&lt;BR /&gt;debug2: kex_parse_kexinit: ssh-rsa,ssh-dss&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit: first_kex_follows 0&lt;BR /&gt;debug2: kex_parse_kexinit: reserved 0&lt;BR /&gt;debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1&lt;BR /&gt;debug2: kex_parse_kexinit: ssh-rsa,ssh-dss&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr&lt;BR /&gt;debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib@openssh.com&lt;BR /&gt;debug2: kex_parse_kexinit: none,zlib@openssh.com&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit:&lt;BR /&gt;debug2: kex_parse_kexinit: first_kex_follows 0&lt;BR /&gt;debug2: kex_parse_kexinit: reserved 0&lt;BR /&gt;debug2: mac_setup: found hmac-md5&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;BR /&gt;debug2: mac_setup: found hmac-md5&lt;BR /&gt;debug1: kex: client-&amp;gt;server aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&amp;lt;1024&amp;lt;8192) sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP&lt;BR /&gt;debug2: dh_gen_key: priv key bits set: 132/256&lt;BR /&gt;debug2: bits set: 514/1024&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;BR /&gt;debug3: check_host_in_hostfile: filename /u09/gis/husl01d/.ssh/known_hosts&lt;BR /&gt;debug3: check_host_in_hostfile: filename /opt/ssh/etc/ssh_known_hosts&lt;BR /&gt;debug3: check_host_in_hostfile: filename /u09/gis/husl01d/.ssh/known_hosts&lt;BR /&gt;debug3: check_host_in_hostfile: filename /opt/ssh/etc/ssh_known_hosts&lt;BR /&gt;debug3: check_host_in_hostfile: filename /u09/gis/husl01d/.ssh/known_hosts&lt;BR /&gt;debug3: check_host_in_hostfile: filename /opt/ssh/etc/ssh_known_hosts&lt;BR /&gt;debug2: no key of type 0 for host serverB&lt;BR /&gt;debug3: check_host_in_hostfile: filename /u09/gis/husl01d/.ssh/known_hosts2&lt;BR /&gt;debug3: check_host_in_hostfile: filename /opt/ssh/etc/ssh_known_hosts2&lt;BR /&gt;debug3: check_host_in_hostfile: filename /u09/gis/husl01d/.ssh/known_hosts&lt;BR /&gt;debug3: check_host_in_hostfile: filename /opt/ssh/etc/ssh_known_hosts&lt;BR /&gt;debug2: no key of type 2 for host serverB&lt;BR /&gt;debug1: read_passphrase: can't open /dev/tty: Permission denied&lt;BR /&gt;Host key verification failed.&lt;/P&gt;&lt;P&gt;============================================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me on this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 02:19:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-key-verification-failed-error-while-doing-passwordless-ssh/m-p/5980011#M483399</guid>
      <dc:creator>laiju.c.babu</dc:creator>
      <dc:date>2013-03-01T02:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Host key verification failed error while doing passwordless ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-key-verification-failed-error-while-doing-passwordless-ssh/m-p/5980115#M483400</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;The issue is solved.&lt;/P&gt;&lt;P&gt;Problem was with permission of /dev/tty&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;crw-r--r--&amp;nbsp;&amp;nbsp; 1 bin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 207 0x000000 Feb 28 15:19 tty&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; === this was the permission&lt;/P&gt;&lt;P&gt;crw-rw--rw--&amp;nbsp;&amp;nbsp; 1 bin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 207 0x000000 Feb 28 15:19 tty&amp;nbsp; === this is the new one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After changing the permission the ssh issue is solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 04:44:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-key-verification-failed-error-while-doing-passwordless-ssh/m-p/5980115#M483400</guid>
      <dc:creator>laiju.c.babu</dc:creator>
      <dc:date>2013-03-01T04:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Host key verification failed error while doing passwordless ssh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-key-verification-failed-error-while-doing-passwordless-ssh/m-p/5980265#M483402</link>
      <description>&lt;P&gt;&amp;gt;3) copy the file id_rsa.pub to the server B&lt;BR /&gt;&amp;gt;4) After this server A to&amp;nbsp; server B connection successful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems some steps are missing?&lt;/P&gt;&lt;P&gt;1) If you want to go both ways, you copy id_rsa too.&amp;nbsp; (But better if this is a common NFS mounted directory.&amp;nbsp; ;-)&lt;/P&gt;&lt;P&gt;2) Append id_rsa.pub to authorized_keys&lt;/P&gt;&lt;P&gt;3) Make sure the permissions on these files is correct:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Files shouldn't be read or writable except by user.&amp;nbsp; For the .pub file, read is ok.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2013 08:39:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-key-verification-failed-error-while-doing-passwordless-ssh/m-p/5980265#M483402</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-03-01T08:39:19Z</dc:date>
    </item>
  </channel>
</rss>

