<?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: prevent ssh from login as root in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/prevent-ssh-from-login-as-root/m-p/3066224#M6572</link>
    <description>My first thought would be to eliminate this direcotry:&lt;BR /&gt;&lt;BR /&gt;$HOME/.ssh&lt;BR /&gt;&lt;BR /&gt;Or just change the permissions to 000&lt;BR /&gt;&lt;BR /&gt;Just do that on any box you want to stop ssh root logins in roots home directory.&lt;BR /&gt;&lt;BR /&gt;I think at that point you will get authentication errors if you try and ssh as root.&lt;BR /&gt;&lt;BR /&gt;If you exchange public keys between the machines, you can safely run ssh between boxes. I'm sure you have a reason for doing this, Secure Shell is safe for root.  As far as I know anyway.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Mon, 08 Sep 2003 18:57:49 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-09-08T18:57:49Z</dc:date>
    <item>
      <title>prevent ssh from login as root</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-ssh-from-login-as-root/m-p/3066223#M6571</link>
      <description>Hi all:&lt;BR /&gt;&lt;BR /&gt;Got RedHat versions 7 and above.&lt;BR /&gt;Received info on pam/su stuff to prevent non-wheel group members from becoming root. Have setup the securetty file.&lt;BR /&gt;&lt;BR /&gt;I also have ssh 3.5.1p1 installed on the Linux systems and on HPUX 11.00.&lt;BR /&gt;&lt;BR /&gt;I am still able to ssh root@linux from the HP system. I need to stop this from happening. I want to block ssh root@linux and force the users to login as themselves 1st then become root (if a member of wheel).&lt;BR /&gt;&lt;BR /&gt;How can I stop ssh root@linux?&lt;BR /&gt;&lt;BR /&gt;Many thanks!</description>
      <pubDate>Mon, 08 Sep 2003 18:43:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-ssh-from-login-as-root/m-p/3066223#M6571</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2003-09-08T18:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: prevent ssh from login as root</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-ssh-from-login-as-root/m-p/3066224#M6572</link>
      <description>My first thought would be to eliminate this direcotry:&lt;BR /&gt;&lt;BR /&gt;$HOME/.ssh&lt;BR /&gt;&lt;BR /&gt;Or just change the permissions to 000&lt;BR /&gt;&lt;BR /&gt;Just do that on any box you want to stop ssh root logins in roots home directory.&lt;BR /&gt;&lt;BR /&gt;I think at that point you will get authentication errors if you try and ssh as root.&lt;BR /&gt;&lt;BR /&gt;If you exchange public keys between the machines, you can safely run ssh between boxes. I'm sure you have a reason for doing this, Secure Shell is safe for root.  As far as I know anyway.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 08 Sep 2003 18:57:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-ssh-from-login-as-root/m-p/3066224#M6572</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-08T18:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: prevent ssh from login as root</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-ssh-from-login-as-root/m-p/3066225#M6573</link>
      <description>Did some digging, found it.&lt;BR /&gt;&lt;BR /&gt;In the /etc/ssh/sshd_config file is an entry for PermitRootLogin - set this value to no.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Sep 2003 19:25:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-ssh-from-login-as-root/m-p/3066225#M6573</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2003-09-08T19:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: prevent ssh from login as root</title>
      <link>https://community.hpe.com/t5/operating-system-linux/prevent-ssh-from-login-as-root/m-p/3066226#M6574</link>
      <description>change /etc/ssh/sshd_config&lt;BR /&gt;&lt;BR /&gt;#PermitRootLogin yes (already comment out)&lt;BR /&gt;&lt;BR /&gt;add this line&lt;BR /&gt;PermitRootLogin no&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Sep 2003 08:01:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/prevent-ssh-from-login-as-root/m-p/3066226#M6574</guid>
      <dc:creator>Vincent Woo</dc:creator>
      <dc:date>2003-09-10T08:01:45Z</dc:date>
    </item>
  </channel>
</rss>

