<?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: Disable remote root login in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422624#M747962</link>
    <description>Thanks again Bill.&lt;BR /&gt;&lt;BR /&gt;I set "PermitRootLogin" to "no" and did a "kill -SIGHUP &lt;PID&gt;". It doesn't allow me to ssh login as root. However, instead of a clear message, it still prompts for password. After I put in password, it keeps asking "password for root@&lt;HOSTNAME&gt;:" which is a bit annoying (see below).&lt;BR /&gt;&lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt; &lt;BR /&gt;  Disconnected; protocol error (Too many authentication failures for root).&lt;BR /&gt;&lt;BR /&gt;As you can see, after 7 tries, it finally kicked me off.&lt;BR /&gt;&lt;BR /&gt;Is this the way supposed to be?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Peng&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/PID&gt;</description>
    <pubDate>Mon, 15 Nov 2004 22:42:28 GMT</pubDate>
    <dc:creator>Peng Lu</dc:creator>
    <dc:date>2004-11-15T22:42:28Z</dc:date>
    <item>
      <title>Disable remote root login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422619#M747957</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to disable remote root login on HPUX 11i hosts. (only allow users login remotely as a normal user then su to root). I have created /etc/securetty file with the content "console". However, I can still remotely login as root through ssh2.&lt;BR /&gt;&lt;BR /&gt;Is ssh handled differently or do I need to reboot after creating /etc/securetty file?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Peng</description>
      <pubDate>Mon, 15 Nov 2004 21:49:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422619#M747957</guid>
      <dc:creator>Peng Lu</dc:creator>
      <dc:date>2004-11-15T21:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Disable remote root login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422620#M747958</link>
      <description>Yes, ssh (older versions) do not use PAM for authentication. Download the latest version of OpenSSH from HP at software.hp.com. Alternatively, enable the parameter in your sshd_config file: &lt;BR /&gt; &lt;BR /&gt;sshdPermitRootLogin no&lt;BR /&gt; &lt;BR /&gt;NOTE: This should be mandatory on *ANY* system facing the open Internet. Over the last few months, many, many scripted attacks for ssh have been seen and root is one of several common logins being tested by hackers.</description>
      <pubDate>Mon, 15 Nov 2004 21:54:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422620#M747958</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-11-15T21:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Disable remote root login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422621#M747959</link>
      <description>Almost forgot: the latest version of OpenSSH from HP is 3.71 and the item you need to turn on in sshd_config is:&lt;BR /&gt; &lt;BR /&gt;UsePAM yes</description>
      <pubDate>Mon, 15 Nov 2004 21:57:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422621#M747959</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-11-15T21:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Disable remote root login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422622#M747960</link>
      <description>Thanks Bill.&lt;BR /&gt;&lt;BR /&gt;swlist shows my ssh is the following version:&lt;BR /&gt;"Secure_Shell A.03.71.000 HP-UX Secure Shell". And in "/opt/ssh/etc/sshd_config" file, "UsePAM" is set to "yes".&lt;BR /&gt;&lt;BR /&gt;Am I looking into the wrong file?&lt;BR /&gt;&lt;BR /&gt;Peng&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Nov 2004 22:15:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422622#M747960</guid>
      <dc:creator>Peng Lu</dc:creator>
      <dc:date>2004-11-15T22:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Disable remote root login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422623#M747961</link>
      <description>I think I remember that /etc/securetty was hardcoded into the login program and not incorporated into PAM. You'll need to use:&lt;BR /&gt; &lt;BR /&gt;PermitRootLogin no</description>
      <pubDate>Mon, 15 Nov 2004 22:22:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422623#M747961</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-11-15T22:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Disable remote root login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422624#M747962</link>
      <description>Thanks again Bill.&lt;BR /&gt;&lt;BR /&gt;I set "PermitRootLogin" to "no" and did a "kill -SIGHUP &lt;PID&gt;". It doesn't allow me to ssh login as root. However, instead of a clear message, it still prompts for password. After I put in password, it keeps asking "password for root@&lt;HOSTNAME&gt;:" which is a bit annoying (see below).&lt;BR /&gt;&lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt;  password for root@&lt;HOSTNAME&gt;: &lt;BR /&gt; &lt;BR /&gt;  Disconnected; protocol error (Too many authentication failures for root).&lt;BR /&gt;&lt;BR /&gt;As you can see, after 7 tries, it finally kicked me off.&lt;BR /&gt;&lt;BR /&gt;Is this the way supposed to be?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Peng&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/HOSTNAME&gt;&lt;/PID&gt;</description>
      <pubDate>Mon, 15 Nov 2004 22:42:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422624#M747962</guid>
      <dc:creator>Peng Lu</dc:creator>
      <dc:date>2004-11-15T22:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Disable remote root login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422625#M747963</link>
      <description>&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;#echo console &amp;gt; /etc/securettys&lt;BR /&gt;#chmod 0744 /etc/securettys&lt;BR /&gt;&lt;BR /&gt;no need to reboot after creating /etc/securettys file&lt;BR /&gt;&lt;BR /&gt;ssh is given for security, it wouldn't allow direct root login even though /etc/securettys is not exist.</description>
      <pubDate>Tue, 16 Nov 2004 00:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422625#M747963</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2004-11-16T00:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Disable remote root login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422626#M747964</link>
      <description>Hi Ravi,&lt;BR /&gt;&lt;BR /&gt;I've already done what you said. See my previous messages.&lt;BR /&gt;&lt;BR /&gt;BTW, ssh does allow you login as root if you don't change configuration.&lt;BR /&gt;&lt;BR /&gt;Thanks anyway.&lt;BR /&gt;Peng</description>
      <pubDate>Tue, 16 Nov 2004 00:51:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422626#M747964</guid>
      <dc:creator>Peng Lu</dc:creator>
      <dc:date>2004-11-16T00:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Disable remote root login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422627#M747965</link>
      <description>Yes, the ssh daemon does not give you a useful message and keeps denying access several times before closing the connection. The retry (in your case, 7) is set in the sshd_config file with PasswordGuesses. There are two schools of thought on error messages:&lt;BR /&gt; &lt;BR /&gt;1. Provide the reason for authentication failure such as "root login is not allowed"&lt;BR /&gt; &lt;BR /&gt;2. Use the same generic response for all authentication failures such as another request for the password.&lt;BR /&gt; &lt;BR /&gt;In case #1, the sysadmin will know the reason without looking in syslog, but at the same time, provide the hacker with too many details. In case #2, the actual failure (root not allowed, username does not exist, password incorrect, etc) is not given, thus keeping the real reason away from the unauthenticated user. Most security people will choose less information for login attempts. Even Unix will not report whether you failed to type the username or failed to type the correct password, just "Login incorrect"</description>
      <pubDate>Tue, 16 Nov 2004 07:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422627#M747965</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-11-16T07:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Disable remote root login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422628#M747966</link>
      <description>Thanks Bill.&lt;BR /&gt;&lt;BR /&gt;Looking into sshd_config file, I couldn't find "PasswordGuess" parameter though. Is this something by default no there?&lt;BR /&gt;&lt;BR /&gt;Peng</description>
      <pubDate>Wed, 17 Nov 2004 18:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422628#M747966</guid>
      <dc:creator>Peng Lu</dc:creator>
      <dc:date>2004-11-17T18:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Disable remote root login</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422629#M747967</link>
      <description>Ooops, sorry, that is a keyword for F-Secure's ssh2 product and not part of OpenSSH (I run both products on different servers).</description>
      <pubDate>Wed, 17 Nov 2004 21:43:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disable-remote-root-login/m-p/3422629#M747967</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-11-17T21:43:18Z</dc:date>
    </item>
  </channel>
</rss>

