<?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: SSH: cannot log in anywhere, even in localhost in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872812#M399033</link>
    <description>Thanks folks! This is a great forum.</description>
    <pubDate>Tue, 30 Nov 2004 08:10:53 GMT</pubDate>
    <dc:creator>Filipe_1</dc:creator>
    <dc:date>2004-11-30T08:10:53Z</dc:date>
    <item>
      <title>SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872799#M399020</link>
      <description>&lt;BR /&gt;Dear Forumers, here is the scenario:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;- HP-UX 11.0, HP-UX_Secure Shell A.03.81.002 from an official HP-UX depot;&lt;BR /&gt;&lt;BR /&gt;- Can login by ssh from any hosts, no problem here;&lt;BR /&gt;&lt;BR /&gt;- Cannot login to anyhost, even to localhost;&lt;BR /&gt;&lt;BR /&gt;- known_hosts is not being populated; No idea why;&lt;BR /&gt;&lt;BR /&gt;- Get the "Host key verification failed" message whenever I try to login;&lt;BR /&gt;&lt;BR /&gt;A piece of the log is below. The coplete log, as well as sshd_config and ssh_config is attached.&lt;BR /&gt;&lt;BR /&gt;Any help would be much appreciated. Thanks in advance, folks!&lt;BR /&gt;&lt;BR /&gt;Filipe.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;--- &lt;BR /&gt;(...)&lt;BR /&gt;debug2: kex_parse_kexinit: none,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: mac_init: found hmac-md5&lt;BR /&gt;debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;BR /&gt;debug2: mac_init: 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: 128/256&lt;BR /&gt;debug2: bits set: 501/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 /.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 /.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 localhost&lt;BR /&gt;debug3: check_host_in_hostfile: filename /.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 /.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 localhost&lt;BR /&gt;Host key verification failed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Nov 2004 13:49:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872799#M399020</guid>
      <dc:creator>Filipe_1</dc:creator>
      <dc:date>2004-11-29T13:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872800#M399021</link>
      <description>This may be a little silly but:&lt;BR /&gt;&lt;BR /&gt;ps -ef | grep sshd&lt;BR /&gt;&lt;BR /&gt;Is the sshd daemon running on localhost?&lt;BR /&gt;&lt;BR /&gt;If not:&lt;BR /&gt;/sbin/init.d/secsh start&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also wondering if you can ping the hosts you are trying to connect to. If you can't ping or prove network connectivity please start there.&lt;BR /&gt;&lt;BR /&gt;You can also test with telnet.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 29 Nov 2004 14:44:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872800#M399021</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-29T14:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872801#M399022</link>
      <description>"no key of type 2 for host localhost"&lt;BR /&gt;&lt;BR /&gt;Have you generated host keys for this host?&lt;BR /&gt;&lt;BR /&gt;Check your /opt/ssh/etc directory for the files: ssh_host_dsa_key, ssh_host_dsa_key.pub, ssh_host_rsa_key and ssh_host_rsa_key.pub.  These would be the version 2 host keys.  If they don't exist you'll need to generate them using ssh-keygen.&lt;BR /&gt;&lt;BR /&gt;# ssh-keygen -t dsa -f /opt/ssh/etc/ssh_host_dsa_key -N ""&lt;BR /&gt;# ssh-keygen -t rsa /opt/ssh/etc/ssh_host_rsa_key -N ""&lt;BR /&gt;&lt;BR /&gt;If they do exist, try recreating them.</description>
      <pubDate>Mon, 29 Nov 2004 14:49:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872801#M399022</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2004-11-29T14:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872802#M399023</link>
      <description>typo...second one should be:&lt;BR /&gt;&lt;BR /&gt;# ssh-keygen -t rsa -f /opt/ssh/etc/ssh_host_rsa_key -N ""&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Nov 2004 14:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872802#M399023</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2004-11-29T14:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872803#M399024</link>
      <description>Yes, sshd is running...&lt;BR /&gt;&lt;BR /&gt;Yes, it was generated:&lt;BR /&gt;&lt;BR /&gt;optg3:/etc# ls -l /opt/ssh/etc/&lt;BR /&gt;total 250&lt;BR /&gt;-r--r--r--   1 bin        bin         111892 Jun 23 10:36 moduli&lt;BR /&gt;-r--r--r--   1 bin        bin           1154 Nov 18 08:56 ssh_config&lt;BR /&gt;-rw-------   1 root       sys            672 Nov 11 15:53 ssh_host_dsa_key&lt;BR /&gt;-rw-r--r--   1 root       sys            600 Nov 11 15:53 ssh_host_dsa_key.pub&lt;BR /&gt;-rw-------   1 root       sys            525 Nov 11 15:52 ssh_host_key&lt;BR /&gt;-rw-r--r--   1 root       sys            324 Nov 11 15:52 ssh_host_key.pub&lt;BR /&gt;-rw-------   1 root       sys            887 Nov 11 15:53 ssh_host_rsa_key&lt;BR /&gt;-rw-r--r--   1 root       sys            220 Nov 11 15:53 ssh_host_rsa_key.pub&lt;BR /&gt;-rw-r--r--   1 root       sys            459 Nov 29 17:29 ssh_known_hosts&lt;BR /&gt;-r--r--r--   1 bin        bin           2811 Jun 23 11:59 ssh_prng_cmds&lt;BR /&gt;-r--r--r--   1 bin        bin           2522 Jul  5 02:28 sshd_config&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Nov 2004 14:52:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872803#M399024</guid>
      <dc:creator>Filipe_1</dc:creator>
      <dc:date>2004-11-29T14:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872804#M399025</link>
      <description>Folks,&lt;BR /&gt;&lt;BR /&gt;- I added the "localhost" entry on /opt/ssh/etc/ssh_known_hosts manually.&lt;BR /&gt;&lt;BR /&gt;Yes, it is finding the key now but..., it is not authenticating. I cant figure out a good reason to do so.&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;ebug1: Found key in /opt/ssh/etc/ssh_known_hosts:2&lt;BR /&gt;debug2: bits set: 496/1024&lt;BR /&gt;debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;debug2: kex_derive_keys&lt;BR /&gt;debug2: set_newkeys: mode 1&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug2: set_newkeys: mode 0&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug2: service_accept: ssh-userauth&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;debug2: key: /.ssh/id_rsa (00000000)&lt;BR /&gt;debug2: key: /.ssh/id_dsa (00000000)&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /.ssh/id_rsa&lt;BR /&gt;debug1: Trying private key: /.ssh/id_dsa&lt;BR /&gt;debug2: we did not send a packet, disable method&lt;BR /&gt;debug1: No more authentication methods to try.&lt;BR /&gt;Permission denied (publickey,password,keyboard-interactive).&lt;BR /&gt;---&lt;BR /&gt;&lt;BR /&gt;Still clueless.&lt;BR /&gt;&lt;BR /&gt;Filipe.</description>
      <pubDate>Mon, 29 Nov 2004 14:56:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872804#M399025</guid>
      <dc:creator>Filipe_1</dc:creator>
      <dc:date>2004-11-29T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872805#M399026</link>
      <description>I'm a bit stumped.&lt;BR /&gt;&lt;BR /&gt;Is ipfilter running on the box? That firewall can be programmed to supress ssh connectivity.&lt;BR /&gt;&lt;BR /&gt;I am assuming at this point that other forms of connectivity, ftp/telnet whatever have been proven to work.&lt;BR /&gt;&lt;BR /&gt;Has it ever worked?&lt;BR /&gt;&lt;BR /&gt;If so, what has changed on the system or with your network since the process last suceeded.&lt;BR /&gt;&lt;BR /&gt;Sherlock Holmes time.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 29 Nov 2004 15:00:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872805#M399026</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-29T15:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872806#M399027</link>
      <description>If you modify the Protocol line sshd_config to read:&lt;BR /&gt;&lt;BR /&gt;Protocol 2,1&lt;BR /&gt;&lt;BR /&gt;and restart the daemon, are you able to login?</description>
      <pubDate>Mon, 29 Nov 2004 15:01:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872806#M399027</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2004-11-29T15:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872807#M399028</link>
      <description>&lt;BR /&gt;Steven,&lt;BR /&gt;No ipfiter. The sshd is accepting conections, but doesnt authenticate for localhost...&lt;BR /&gt;&lt;BR /&gt;Telnet/FTP/whatever are working fine.&lt;BR /&gt;&lt;BR /&gt;No, I dont know if it worked once. The server was cold installed recently.&lt;BR /&gt;&lt;BR /&gt;Jim, I will give it a try, and will ket you know.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Nov 2004 15:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872807#M399028</guid>
      <dc:creator>Filipe_1</dc:creator>
      <dc:date>2004-11-29T15:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872808#M399029</link>
      <description>Just a thought, permissions on known_hosts? Also, why is it checking more than one?</description>
      <pubDate>Mon, 29 Nov 2004 17:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872808#M399029</guid>
      <dc:creator>Myles McManus</dc:creator>
      <dc:date>2004-11-29T17:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872809#M399030</link>
      <description>In your ssh_config file you have&lt;BR /&gt;&lt;BR /&gt;BatchMode yes&lt;BR /&gt;&lt;BR /&gt;Please try setting this option to 'no'.&lt;BR /&gt;&lt;BR /&gt;BatchMode&lt;BR /&gt;If set to ``yes'', passphrase/password querying will be disabled. This option is useful in scripts and other batch jobs where no user is present to supply the password.  The argument must be ``yes'' or ``no''.  The default is ``no''.</description>
      <pubDate>Tue, 30 Nov 2004 00:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872809#M399030</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2004-11-30T00:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872810#M399031</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;//debug2: key: /.ssh/id_rsa (00000000)&lt;BR /&gt;debug2: key: /.ssh/id_dsa (00000000)&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /.ssh/id_rsa&lt;BR /&gt;debug1: Trying private key: /.ssh/id_dsa //&lt;BR /&gt;&lt;BR /&gt;What's up with those id_dsa|rsa files?. Look in  /.ssh/ directory and see if those files are  corrupted or of zero length. Try moving them as .old and see if there is anyluck. &lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 30 Nov 2004 01:00:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872810#M399031</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-30T01:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872811#M399032</link>
      <description>Thanks Ermin,&lt;BR /&gt;&lt;BR /&gt;You nailed that.&lt;BR /&gt;&lt;BR /&gt;The funny thing is that no level of verbosity gave the clue. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Nov 2004 08:10:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872811#M399032</guid>
      <dc:creator>Filipe_1</dc:creator>
      <dc:date>2004-11-30T08:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: SSH: cannot log in anywhere, even in localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872812#M399033</link>
      <description>Thanks folks! This is a great forum.</description>
      <pubDate>Tue, 30 Nov 2004 08:10:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-cannot-log-in-anywhere-even-in-localhost/m-p/4872812#M399033</guid>
      <dc:creator>Filipe_1</dc:creator>
      <dc:date>2004-11-30T08:10:53Z</dc:date>
    </item>
  </channel>
</rss>

