<?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: Cannot ssh root@server after running Bastille... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523671#M220281</link>
    <description>Lee,&lt;BR /&gt;&lt;BR /&gt;Bastille doesn't do anything with SSH.&lt;BR /&gt;As Patrick mentioned the root login isn't possible, only from the console.&lt;BR /&gt;When you temporary move the /etc/securetty to another name you will be possible to login as root directly. &lt;BR /&gt;But from a security point of view you don't really want this.&lt;BR /&gt;&lt;BR /&gt;I've done the following to create a secure system:&lt;BR /&gt;- Bastille&lt;BR /&gt;- Benchmark scoring tool ( &lt;A href="http://www.cisecurity.org" target="_blank"&gt;http://www.cisecurity.org&lt;/A&gt; )&lt;BR /&gt;&lt;BR /&gt;Have Fun&lt;BR /&gt;&lt;BR /&gt;Darrel</description>
    <pubDate>Sun, 24 Apr 2005 03:31:02 GMT</pubDate>
    <dc:creator>Darrel Louis</dc:creator>
    <dc:date>2005-04-24T03:31:02Z</dc:date>
    <item>
      <title>Cannot ssh root@server after running Bastille...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523666#M220276</link>
      <description>Aha! I know the easy option would be to run bastille -r, but I like all the changes Bastille has made...it's just this one particular thing thats a problem.&lt;BR /&gt;&lt;BR /&gt;I ran bastille on a test box we have just to see what the affects of hardening the system would be. &lt;BR /&gt;&lt;BR /&gt;Yesterday, after I did this, I was pretty sure that I was able to directly logon as root but only using ssh to connect.&lt;BR /&gt;&lt;BR /&gt;However today I tried to ssh to the server as root, but after it let me put in my password, it then logs me straight off...&lt;BR /&gt;&lt;BR /&gt;It goes a little something like this...&lt;BR /&gt;&lt;BR /&gt;ssh root@myserver&lt;BR /&gt;Password: secret1&lt;BR /&gt;&lt;BLAH blah="" ...="" contents="" of=""&gt;&lt;BR /&gt;Connection to myserver closed.&lt;BR /&gt;&lt;BR /&gt;I also tried logging in using PuTTY but the same thing happened.&lt;BR /&gt;&lt;BR /&gt;Can someone tell me what setting I need to change in what config file? I originally assumed /opt/ssh/etc/sshd_config, but couldn't see any parameters which looked appropriate.&lt;BR /&gt;&lt;BR /&gt;Many Thanks! - Lee&lt;/BLAH&gt;</description>
      <pubDate>Wed, 13 Apr 2005 02:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523666#M220276</guid>
      <dc:creator>Lee Harris_5</dc:creator>
      <dc:date>2005-04-13T02:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot ssh root@server after running Bastille...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523667#M220277</link>
      <description>/opt/ssh/etc/sshd_config is usually the correct file. The setting to look for is "PermitRootLogin no".&lt;BR /&gt;&lt;BR /&gt;You should reconsider allowing ssh to root using password authentication. If you need ssh access to root account, could you use SSH  public key authentication for that? &lt;BR /&gt;&lt;BR /&gt;The PermitRootLogin has two other settings than a simple yes/no. One is "without-password" which is a bit of a misnomer IMHO: it actually means that root cannot use password authentication but other authentication schemes (mainly SSH keys, but also PAM keyboard-interactive authentication) can be used.&lt;BR /&gt;&lt;BR /&gt;The other is "forced-commands-only", which allows direct logins as root only with public key authentication, but further limits it. Access is allowed for running only the specific commands that are defined in /root/.ssh/authorized_keys, one command per key. This might be useful for automated remote backups and such.</description>
      <pubDate>Wed, 13 Apr 2005 02:55:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523667#M220277</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2005-04-13T02:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot ssh root@server after running Bastille...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523668#M220278</link>
      <description>Hi, thanks for the reply...&lt;BR /&gt;&lt;BR /&gt;I uncommented the line in sshd_config so I've now got...&lt;BR /&gt;&lt;BR /&gt;# Authentication:                                                  &lt;BR /&gt;                                                                                &lt;BR /&gt;#LoginGraceTime 2m                                                              &lt;BR /&gt;PermitRootLogin yes                                                             &lt;BR /&gt;#StrictModes yes                                                                &lt;BR /&gt;#MaxAuthTries 6                                                                 &lt;BR /&gt;                                                                                &lt;BR /&gt;#RSAAuthentication yes                                                          &lt;BR /&gt;#PubkeyAuthentication yes                                                       &lt;BR /&gt;#AuthorizedKeysFile     .ssh/authorized_keys &lt;BR /&gt;&lt;BR /&gt;...but I still cannot logon directly as root...&lt;BR /&gt;&lt;BR /&gt;As for using Public Keys...as fun as that sounds, I'm too much of an SSH noob to start fiddling with that kind of hardcore SSH stuff. &lt;BR /&gt;&lt;BR /&gt;Anyway, I changed the config, gave it some kill - SIGHUP on SSHD pid, but its still not letting me login as root.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Apr 2005 03:22:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523668#M220278</guid>
      <dc:creator>Lee Harris_5</dc:creator>
      <dc:date>2005-04-13T03:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot ssh root@server after running Bastille...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523669#M220279</link>
      <description>Note that Bastille doesn't configure SSH, it just makes a hole in the IPFitler-based firewall for your traffic to get through (if you use Bastille to set up your firewall, and ask it to make the hole).&lt;BR /&gt;&lt;BR /&gt;-Robert</description>
      <pubDate>Fri, 22 Apr 2005 18:01:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523669#M220279</guid>
      <dc:creator>Robert Fritz</dc:creator>
      <dc:date>2005-04-22T18:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot ssh root@server after running Bastille...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523670#M220280</link>
      <description>Check you /etc/securetty file and see if it has the word 'console' in it.  If it does, try renaming the file to something else (/etc/securetty.orig for instance) and then try your SSH again.&lt;BR /&gt;&lt;BR /&gt;I don't recall if SSH looks at the securetty file or not.  It can't hurt to give it a try though.</description>
      <pubDate>Fri, 22 Apr 2005 18:45:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523670#M220280</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-04-22T18:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot ssh root@server after running Bastille...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523671#M220281</link>
      <description>Lee,&lt;BR /&gt;&lt;BR /&gt;Bastille doesn't do anything with SSH.&lt;BR /&gt;As Patrick mentioned the root login isn't possible, only from the console.&lt;BR /&gt;When you temporary move the /etc/securetty to another name you will be possible to login as root directly. &lt;BR /&gt;But from a security point of view you don't really want this.&lt;BR /&gt;&lt;BR /&gt;I've done the following to create a secure system:&lt;BR /&gt;- Bastille&lt;BR /&gt;- Benchmark scoring tool ( &lt;A href="http://www.cisecurity.org" target="_blank"&gt;http://www.cisecurity.org&lt;/A&gt; )&lt;BR /&gt;&lt;BR /&gt;Have Fun&lt;BR /&gt;&lt;BR /&gt;Darrel</description>
      <pubDate>Sun, 24 Apr 2005 03:31:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-ssh-root-server-after-running-bastille/m-p/3523671#M220281</guid>
      <dc:creator>Darrel Louis</dc:creator>
      <dc:date>2005-04-24T03:31:02Z</dc:date>
    </item>
  </channel>
</rss>

