<?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 Disabling root login via Secure Shell in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824042#M270664</link>
    <description>Hi there --&lt;BR /&gt;&lt;BR /&gt;What configuration file(s) and what syntax should I use to modify in order to prevent the root user from being able to log into a system via SSH? Thanks</description>
    <pubDate>Fri, 14 Jul 2006 15:35:27 GMT</pubDate>
    <dc:creator>Andrew Kaplan</dc:creator>
    <dc:date>2006-07-14T15:35:27Z</dc:date>
    <item>
      <title>Disabling root login via Secure Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824042#M270664</link>
      <description>Hi there --&lt;BR /&gt;&lt;BR /&gt;What configuration file(s) and what syntax should I use to modify in order to prevent the root user from being able to log into a system via SSH? Thanks</description>
      <pubDate>Fri, 14 Jul 2006 15:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824042#M270664</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2006-07-14T15:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling root login via Secure Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824043#M270665</link>
      <description>logged in as root, create a file under /etc, called securetty and insert one line in it whic says console and you are done&lt;BR /&gt;&lt;BR /&gt;as root, run these two commands:&lt;BR /&gt;&lt;BR /&gt;echo console &amp;gt;/etc/securetty&lt;BR /&gt;chmod 600 /etc/securetty</description>
      <pubDate>Fri, 14 Jul 2006 15:40:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824043#M270665</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2006-07-14T15:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling root login via Secure Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824044#M270666</link>
      <description>In your sshd_config a line like this:&lt;BR /&gt;&lt;BR /&gt;PermitRootLogin no&lt;BR /&gt;&lt;BR /&gt;will disallow root logins via SSH.  The location of the file may vary depending on where you got your SSH from.&lt;BR /&gt;&lt;BR /&gt;I am using the HP distributed SSH and this file is located in /etc/opt/ssh.&lt;BR /&gt;&lt;BR /&gt;You will have to stop and restart SSH for this to take effect.&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Jul 2006 15:42:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824044#M270666</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-07-14T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling root login via Secure Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824045#M270667</link>
      <description>/etc/securetty has no effect on SSH.  At least not for me.</description>
      <pubDate>Fri, 14 Jul 2006 15:44:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824045#M270667</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-07-14T15:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling root login via Secure Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824046#M270668</link>
      <description>Andrew,&lt;BR /&gt;&lt;BR /&gt;To prevent root from logging in via ssh modify the sshd.config file and look for the PermitRootLogin line, you want to change this parameter to no.&lt;BR /&gt;&lt;BR /&gt;The location of the file is in /opt/ssh/etc, at the end please restart the service.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Jaime.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Jul 2006 15:44:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824046#M270668</guid>
      <dc:creator>Jaime Bolanos Rojas.</dc:creator>
      <dc:date>2006-07-14T15:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling root login via Secure Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824047#M270669</link>
      <description>Thanks for the help. I modified the sshd_config file and restarted secure shell. As long as I am asking, I would like to have the "Authorized Use" or "Unwelcome Mat" message appear when a user logs into the system by ssh. Again, what file(s) would I need to accomplish this? Thanks.</description>
      <pubDate>Fri, 14 Jul 2006 15:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824047#M270669</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2006-07-14T15:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling root login via Secure Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824048#M270670</link>
      <description>again, in the sshd_config file, uncomment the line&lt;BR /&gt;#Banner /some/path&lt;BR /&gt;&lt;BR /&gt;and replace /some/path with whatever the path to the banner message you want displayed.&lt;BR /&gt;&lt;BR /&gt;Restart sshd and you've got it.</description>
      <pubDate>Fri, 14 Jul 2006 16:08:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824048#M270670</guid>
      <dc:creator>Mark Fenton</dc:creator>
      <dc:date>2006-07-14T16:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling root login via Secure Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824049#M270671</link>
      <description>Hi&lt;BR /&gt;The thread is quite informative but i want to dissable root login using password over ssh. I want ssh root login using public key authentication to be remain open. How to do that&lt;BR /&gt;I have lots of scripts which calls programmes from one server to other using public key login. I cant stop those.&lt;BR /&gt;Pls help.</description>
      <pubDate>Sun, 23 Jul 2006 01:14:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824049#M270671</guid>
      <dc:creator>Amitava_HP-UX</dc:creator>
      <dc:date>2006-07-23T01:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling root login via Secure Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824050#M270672</link>
      <description>The PermitRootLogin option can be given four values. The default is "yes"; the obvious alternative "no" was already mentioned. The other values are "without-password" and "forced-commands-only". &lt;BR /&gt;Please read "man sshd_config" for more information.&lt;BR /&gt;&lt;BR /&gt;The "without-password" does NOT mean root can login with no authentication at all: it means that root can use any authentication mechanism other than a password to log in. Usually this means SSH keys, but in some environments this could also mean smart card, SecurID or some other authentication system. &lt;BR /&gt;&lt;BR /&gt;The "forced-commands-only" is a very strict setting: it accepts SSH keys only, *and* each authorized key must have a fixed command defined for it in the root user's ~/.ssh/authorized_keys file. When a root login is made using a key, sshd does not even check what the client wanted: it runs the command specified for that key, and nothing else. When that command completes, the connection is closed. &lt;BR /&gt;&lt;BR /&gt;The "forced-commands-only" option might be useful if someone steals the keys you're using for automated actions with root access.   In the normal situation, the thief can do *anything* to your systems; but if you're using forced commands, the damage is limited. For example, if someone steals the key used to make backups, you know the thief can steal your data (by making an "extra backup") but he/she cannot corrupt the data in your system.</description>
      <pubDate>Sun, 23 Jul 2006 01:59:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824050#M270672</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2006-07-23T01:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling root login via Secure Shell</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824051#M270673</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;find your configuration for ssh config. for default, sshd_config put in /opt/ssh/etc&lt;BR /&gt;edit line:&lt;BR /&gt;PermitRootlogin No&lt;BR /&gt;&lt;BR /&gt;than restart your sshd daemon:&lt;BR /&gt;#ps -ef|grep sshd&lt;BR /&gt;#kill -HUP pid of sshd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-yut-</description>
      <pubDate>Sun, 23 Jul 2006 22:15:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disabling-root-login-via-secure-shell/m-p/3824051#M270673</guid>
      <dc:creator>yulianto piyut</dc:creator>
      <dc:date>2006-07-23T22:15:53Z</dc:date>
    </item>
  </channel>
</rss>

