<?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: openssh client ignores public key authentication in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195363#M165535</link>
    <description>As far as I remember password was required &lt;BR /&gt;after ssh session for some reason passed over &lt;BR /&gt;public key and moved to pam authentication (which in hp-ux goes by default to /etc/password). I'd check proper libraries (~/.ssh if I'm correct) permissions.The compile flags for 3.6 and 3.7 were the same?&lt;BR /&gt;&lt;BR /&gt;It could also be a matter of configuration, compare ssh_config for both 3.6 and 3.7.</description>
    <pubDate>Wed, 18 Feb 2004 08:40:31 GMT</pubDate>
    <dc:creator>Zeev Schultz</dc:creator>
    <dc:date>2004-02-18T08:40:31Z</dc:date>
    <item>
      <title>openssh client ignores public key authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195360#M165532</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have compiled openssh 3.6.1p1 and 3.7.1p2 for HPUX 10.20 (unfortunately we can not migrate to HPUX 11xx for various reasons)&lt;BR /&gt;Due to some security bugs we need to use 3.7.1p2.&lt;BR /&gt;With 3.6.1p1 I was able to connect from HPUX via public key so that I could run non-interactive commands and logins.&lt;BR /&gt;With 3.7.1p2 the ssh client on HPUX completely fails to authenticate via public key.&lt;BR /&gt;I have attached the debug output and I would greatly appreciate if someone had a solution to my problem.&lt;BR /&gt;&lt;BR /&gt;Detailed description:&lt;BR /&gt;The sshd daemon works OK. I can use public key authentication from Linux or Windows TO HPUX without problems.&lt;BR /&gt;The public/private key pair is rsa-2 and it is OK as  it works between Linux systems and also FROM Linux or Windows TO my HPUX Machine.&lt;BR /&gt;When I try ssh FROM  HPUX  to other hosts or even to myself  (as done in the attached example) sshd always asks for a password.&lt;BR /&gt;It seems that the ssh client skips the public key authentication step as can be seen from the debug output.&lt;BR /&gt;I even tried to enable rhost authentication but the effect was the same, the authentication step is simply skipped.&lt;BR /&gt;&lt;BR /&gt;As HP-UX does not support PAM I did not use the with-pam flag for compilation.&lt;BR /&gt;The openssh version 3.6.1p1 does not show the described effect, i.e. I can connect from HP-UX using public key authentication without problems.&lt;BR /&gt;&lt;BR /&gt;Does anybody have a clue what is going on here?&lt;BR /&gt;&lt;BR /&gt;  Peter Kielbasiewicz&lt;BR /&gt;  Philips medical systems Germany&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Feb 2004 08:02:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195360#M165532</guid>
      <dc:creator>Peter Kielbasiewicz</dc:creator>
      <dc:date>2004-02-18T08:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: openssh client ignores public key authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195361#M165533</link>
      <description>Run through the doc I'm attaching, pay special attention to the permissions. I use cat instead of X but you get the idea.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 18 Feb 2004 08:08:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195361#M165533</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-02-18T08:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: openssh client ignores public key authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195362#M165534</link>
      <description>Seems it has to somewith with config files.&lt;BR /&gt;&lt;BR /&gt;Is there some setting (may be in sshd_config/ssh_config file) that talks about preferred authentication method. &lt;BR /&gt;(This is there in HP's ssh version)&lt;BR /&gt;&lt;BR /&gt;Setting this to exchange of public/private keys should resolve your problem.</description>
      <pubDate>Wed, 18 Feb 2004 08:14:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195362#M165534</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-02-18T08:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: openssh client ignores public key authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195363#M165535</link>
      <description>As far as I remember password was required &lt;BR /&gt;after ssh session for some reason passed over &lt;BR /&gt;public key and moved to pam authentication (which in hp-ux goes by default to /etc/password). I'd check proper libraries (~/.ssh if I'm correct) permissions.The compile flags for 3.6 and 3.7 were the same?&lt;BR /&gt;&lt;BR /&gt;It could also be a matter of configuration, compare ssh_config for both 3.6 and 3.7.</description>
      <pubDate>Wed, 18 Feb 2004 08:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195363#M165535</guid>
      <dc:creator>Zeev Schultz</dc:creator>
      <dc:date>2004-02-18T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: openssh client ignores public key authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195364#M165536</link>
      <description>by the way this a full (i guess) page&lt;BR /&gt;for ssh possible authentication errors, pass over and check:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://secu.zzu.edu.cn/book/NetWork/NetworkingBookshelf_2ndEd/ssh/ch12_02.htm" target="_blank"&gt;http://secu.zzu.edu.cn/book/NetWork/NetworkingBookshelf_2ndEd/ssh/ch12_02.htm&lt;/A&gt;</description>
      <pubDate>Wed, 18 Feb 2004 09:04:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195364#M165536</guid>
      <dc:creator>Zeev Schultz</dc:creator>
      <dc:date>2004-02-18T09:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: openssh client ignores public key authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195365#M165537</link>
      <description>I am aware of critical access rights to the files and directories and they are correct.&lt;BR /&gt;As I said I can connect from other platforms to my HPUX sshd daemon with my private key, so there is no problem here.&lt;BR /&gt;For testing I just ssh to myself on my HPUX box.&lt;BR /&gt;When I use openssh 3.6.1p1 everything works fine so access rights and my public/private key pair must be correct.&lt;BR /&gt;As can be seen from the debug output openssh 3.7.1p2 just says that it did not send a packet (see below), i.e. it does not even try to use the key authentication.&lt;BR /&gt;The problem is definitely on the ssh side not on the sshd daemon.&lt;BR /&gt;I have attached my ssh_config file which is just the defaults that I got from the sources and it is the same as with 3.6.1p1.&lt;BR /&gt;Also I think my compilation can not have problems with library access rights as in both versions of ssh I have compiled a statically linked package so that I do not need any extra packages like zlib, openssl or tcp_wrappers.&lt;BR /&gt;For reference I have also attached my compile script.&lt;BR /&gt;&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug3: start over, passed a different list publickey,password,keyboard-interactive&lt;BR /&gt;debug3: preferred publickey,keyboard-interactive,password&lt;BR /&gt;debug3: authmethod_lookup publickey&lt;BR /&gt;debug3: remaining preferred: keyboard-interactive,password&lt;BR /&gt;debug3: authmethod_is_enabled publickey&lt;BR /&gt;debug1: Next authentication method: publickey&lt;BR /&gt;debug2: we did not send a packet, disable method&lt;BR /&gt;debug3: authmethod_lookup keyboard-interactive&lt;BR /&gt;debug3: remaining preferred: password&lt;BR /&gt;debug3: authmethod_is_enabled keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: keyboard-interactive&lt;BR /&gt;debug2: userauth_kbdint&lt;BR /&gt;debug2: we sent a keyboard-interactive packet, wait for reply&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Feb 2004 09:42:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195365#M165537</guid>
      <dc:creator>Peter Kielbasiewicz</dc:creator>
      <dc:date>2004-02-18T09:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: openssh client ignores public key authentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195366#M165538</link>
      <description>Peter,&lt;BR /&gt;&lt;BR /&gt;I came across the same problem with HP-UX 11.00.  If you search through the "List Archive" on the Openssh site, you will find that the problem you are experiencing has been an issue on HP-UX with all releases after OpenSSH_3.6.1p1.&lt;BR /&gt;&lt;BR /&gt;My solution was as follows:&lt;BR /&gt;&lt;BR /&gt;1.  Retain OpenSSH_3.6.1p1 and implement the&lt;BR /&gt;    patch found at  &lt;BR /&gt;    &lt;A href="http://openssh.com/txt/buffer.adv." target="_blank"&gt;http://openssh.com/txt/buffer.adv.&lt;/A&gt;&lt;BR /&gt;2.  I couldn't figure out how the HP "patch" &lt;BR /&gt;    command worked on HP-UX, so I installed &lt;BR /&gt;    the patch on a Linux box and copied the&lt;BR /&gt;    source over to the HP server to compile.&lt;BR /&gt;      Did the following on a Linux box:&lt;BR /&gt;        cp patch.txt openssh-3.6.1p1&lt;BR /&gt;        cd openssh-3.6.1p1&lt;BR /&gt;        patch &amp;lt; patch.txt&lt;BR /&gt;&lt;BR /&gt;Hope this helps (with 10.20)...&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Thu, 19 Feb 2004 10:00:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/openssh-client-ignores-public-key-authentication/m-p/3195366#M165538</guid>
      <dc:creator>Theodore Pardike</dc:creator>
      <dc:date>2004-02-19T10:00:14Z</dc:date>
    </item>
  </channel>
</rss>

