<?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 sshd_config &amp;quot;UsePAM yes&amp;quot; problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398808#M200341</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have an 11i box with HP-UX secure shell 3.81 installed and am having trouble getting some authentication working.  &lt;BR /&gt;&lt;BR /&gt;when I am logged in on box A (as my own userid), and run "ssh root@boxb", I get prompted for the password, I enter it but get this output and cannot log in:&lt;BR /&gt;Password: &lt;BR /&gt;Last   successful login for root: Wed Oct 13 11:33:52 EST-10EDT 2004 on pts/0 &lt;BR /&gt;Last unsuccessful login for root: Wed Oct 13 11:40:36 EST-10EDT 2004      &lt;BR /&gt;&lt;BR /&gt;Last login: Wed Oct 13 16:25:40 2004 from boxa.workcover&lt;BR /&gt;Connection to boxb closed.&lt;BR /&gt;&lt;BR /&gt;Furthermore, if I am logged in as root and run "ssh root@boxb", I get in fine, however I have set up keys so I don't need to type in a password to log in when ssh'ing from root.&lt;BR /&gt;&lt;BR /&gt;One other thing, the syslog file on the ssh server shows this:&lt;BR /&gt;Oct 13 16:26:01 dunk sshd[2720]: Accepted keyboard-interactive/pam for root from 172.xx.x.x port 54&lt;BR /&gt;477 ssh2&lt;BR /&gt;&lt;BR /&gt;so it's accepting the password, but why does it kick me out?&lt;BR /&gt;&lt;BR /&gt;Now, one other thing to note is that if I change the "UsePAM yes" option in the sshd_config file to "UsePAM no" (and restart sshd), this whole problem goes away.  But why would making this "yes" make logins fail?  On all my other boxes, I have UsePAM yes set and I have no problems logging in on them!  (although they use secsh 3.71, not 3.81 as this new box does).&lt;BR /&gt;&lt;BR /&gt;Can anyone shed some light on this issue and let me know what's going wrong?  &lt;BR /&gt;&lt;BR /&gt;Much appreciated.&lt;BR /&gt;&lt;BR /&gt;-Andy&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Oct 2004 01:33:44 GMT</pubDate>
    <dc:creator>support_5</dc:creator>
    <dc:date>2004-10-13T01:33:44Z</dc:date>
    <item>
      <title>sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398808#M200341</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I have an 11i box with HP-UX secure shell 3.81 installed and am having trouble getting some authentication working.  &lt;BR /&gt;&lt;BR /&gt;when I am logged in on box A (as my own userid), and run "ssh root@boxb", I get prompted for the password, I enter it but get this output and cannot log in:&lt;BR /&gt;Password: &lt;BR /&gt;Last   successful login for root: Wed Oct 13 11:33:52 EST-10EDT 2004 on pts/0 &lt;BR /&gt;Last unsuccessful login for root: Wed Oct 13 11:40:36 EST-10EDT 2004      &lt;BR /&gt;&lt;BR /&gt;Last login: Wed Oct 13 16:25:40 2004 from boxa.workcover&lt;BR /&gt;Connection to boxb closed.&lt;BR /&gt;&lt;BR /&gt;Furthermore, if I am logged in as root and run "ssh root@boxb", I get in fine, however I have set up keys so I don't need to type in a password to log in when ssh'ing from root.&lt;BR /&gt;&lt;BR /&gt;One other thing, the syslog file on the ssh server shows this:&lt;BR /&gt;Oct 13 16:26:01 dunk sshd[2720]: Accepted keyboard-interactive/pam for root from 172.xx.x.x port 54&lt;BR /&gt;477 ssh2&lt;BR /&gt;&lt;BR /&gt;so it's accepting the password, but why does it kick me out?&lt;BR /&gt;&lt;BR /&gt;Now, one other thing to note is that if I change the "UsePAM yes" option in the sshd_config file to "UsePAM no" (and restart sshd), this whole problem goes away.  But why would making this "yes" make logins fail?  On all my other boxes, I have UsePAM yes set and I have no problems logging in on them!  (although they use secsh 3.71, not 3.81 as this new box does).&lt;BR /&gt;&lt;BR /&gt;Can anyone shed some light on this issue and let me know what's going wrong?  &lt;BR /&gt;&lt;BR /&gt;Much appreciated.&lt;BR /&gt;&lt;BR /&gt;-Andy&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Oct 2004 01:33:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398808#M200341</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2004-10-13T01:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398809#M200342</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;From your problem statement it seems, when you login with your id and run "ssh root@boxb" you are prompted for Pam Password prompt. When you provide correct password the Pam authentication succeeds but the problem starts when SSH tries to allocate tty.&lt;BR /&gt;&lt;BR /&gt;To analyse this issue deep, run the server and client in debug mode.&lt;BR /&gt; &lt;BR /&gt;&lt;A href="http://www.snailbook.com/faq/general-debugging.auto.html" target="_blank"&gt;www.snailbook.com/faq/general-debugging.auto.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Post the both the logs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Oct 2004 02:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398809#M200342</guid>
      <dc:creator>Michael Selvesteen_2</dc:creator>
      <dc:date>2004-10-13T02:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398810#M200343</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes, it's strange that immediately after PAM authenticates, that it fails.  But it's interesting that if we bypass PAM by using ssh keys for authentication, then it works fine.  &lt;BR /&gt;&lt;BR /&gt;Anyway, I've attached the logs.  (both logs for the client and server are in the one file.)&lt;BR /&gt;&lt;BR /&gt;- Andrew</description>
      <pubDate>Wed, 13 Oct 2004 19:40:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398810#M200343</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2004-10-13T19:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398811#M200344</link>
      <description>Hi Andy,&lt;BR /&gt;&lt;BR /&gt;Are your PAM configs different on hosta?  I'd also look at /etc/default/security to ensure root login is allowed.  Is your sshd set-up to use login?&lt;BR /&gt;&lt;BR /&gt;Tyler</description>
      <pubDate>Wed, 13 Oct 2004 19:55:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398811#M200344</guid>
      <dc:creator>Tyler Easterling_1</dc:creator>
      <dc:date>2004-10-13T19:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398812#M200345</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the suggestions so far.  I compared the /etc/pam.conf files and they are identical.  I compared the /opt/ssh/etc/sshd_config files to see if there were any differences, and they were identical except for one line which the other server which has ssh working properly has which is: "GSSAPIAuthentication no" in its sshd_config file.  I don't think that's enough to cause our problems though.&lt;BR /&gt;&lt;BR /&gt;I don't know what you are specifically meaning when you say "is ssh setup to use login"?  Can you elaborate please?  &lt;BR /&gt;&lt;BR /&gt;Any other suggestions?&lt;BR /&gt;&lt;BR /&gt;Thanks heaps!&lt;BR /&gt;&lt;BR /&gt;- Andy Gray&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Oct 2004 20:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398812#M200345</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2004-10-13T20:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398813#M200346</link>
      <description>Oh yeah, I checked the /etc/default/security file but it didn't exist on either of these servers.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;- Andy</description>
      <pubDate>Wed, 13 Oct 2004 20:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398813#M200346</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2004-10-13T20:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398814#M200347</link>
      <description>Andy,&lt;BR /&gt;&lt;BR /&gt;Has your password expired, account-locked, or you have remote logins denied? SSH will refuse to log you in if any of this conditions are true.</description>
      <pubDate>Thu, 14 Oct 2004 01:46:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398814#M200347</guid>
      <dc:creator>Andrew Cowan</dc:creator>
      <dc:date>2004-10-14T01:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398815#M200348</link>
      <description>Another thought, do you have anything strange in your ".profile" or "/etc/profile". I had a problem recently with "who" in my "profile" and it was failing because there was no tty defined when running "su -c"</description>
      <pubDate>Thu, 14 Oct 2004 01:48:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398815#M200348</guid>
      <dc:creator>Andrew Cowan</dc:creator>
      <dc:date>2004-10-14T01:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398816#M200349</link>
      <description>I don't think that is the problem.  As I mentioned above, if I change the "usePAM yes" option to "usePAM no", then logins work fine.  Also, logins work fine when I have ssh keys shared (so that I don't have to enter a password).  That is why I wondered why changing usePAM to no would suddenly enable me to login, whereas otherwise it wouldn't allow me to login (with the usePAM yes option).  &lt;BR /&gt;&lt;BR /&gt;So it's very strange.  It would appear that PAM is failing somewhere, but as I mentioned above, in the syslog, it says that PAM has authenticated the user, and this can be further seen by the fact that I get information about last successful and unsuccessful logins for root when I try logging in.  Obviously, it only gives me that if I have already somehow successfully logged in.  Someone pointed out that it was perhaps dying whilst trying to allocate a tty or something.  This seems likely, but I don't know why turning PAM authentication off would suddenly make logging in work!  &lt;BR /&gt;&lt;BR /&gt;Know what I mean?&lt;BR /&gt;&lt;BR /&gt;Anyone have other ideas?  Thanks heaps!&lt;BR /&gt;&lt;BR /&gt;- Andy&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2004 01:54:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398816#M200349</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2004-10-14T01:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398817#M200350</link>
      <description>Oh, also, the account isn't locked (because I can log in when root from other servers because I have shared ssh keys, so it's passwordless logins).  There is nothing bogus in the .profile, and I removed it and tested it just in case, same problem.  Also, an "su -" from a normal user on the box works fine.  &lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;&lt;BR /&gt;- Andy</description>
      <pubDate>Thu, 14 Oct 2004 01:59:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398817#M200350</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2004-10-14T01:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398818#M200351</link>
      <description>I have had a problem on AIX with logging-in via SSH when PAM is in use. That was caused by a syntax error in the "pam.conf"? file. From memory one of the "required" modules was missing.&lt;BR /&gt;&lt;BR /&gt;Have you checked that both versions of SSH were compiled with "usePAM=yes", and that there are no patches kicking around?</description>
      <pubDate>Thu, 14 Oct 2004 02:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398818#M200351</guid>
      <dc:creator>Andrew Cowan</dc:creator>
      <dc:date>2004-10-14T02:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: sshd_config "UsePAM yes" problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398819#M200352</link>
      <description>Well, I don't really know what specific patch fixed it, but after applying the June 2004 HP-UX 11.i patch bundle, logins seem to be working fine now.  &lt;BR /&gt;&lt;BR /&gt;Hate to admit that it was a patching issue. grrrr.  &lt;BR /&gt;&lt;BR /&gt;Anyway, thank you for your input.  &lt;BR /&gt;&lt;BR /&gt;- Andy Gray&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Oct 2004 17:45:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sshd-config-quot-usepam-yes-quot-problem/m-p/3398819#M200352</guid>
      <dc:creator>support_5</dc:creator>
      <dc:date>2004-10-14T17:45:16Z</dc:date>
    </item>
  </channel>
</rss>

