Hi Krzysztof,<div><br></div><div>The default is "PermitRootLogin yes" as per man page. It is confusing a little bit though in my opinion as it is commented out in a default sshd_config file. That means you need to specifically set it to "no" and restart sshd if you want to disallow root access.</div>
<div>I logged in as root with no problem to my fresh RHEL6.1. After adding PermitRootLogin no and restarting sshd it happily returns Permission denied, please try again. :)</div><div><br></div><div>Regards,</div><div>Ges</div>
<div><br><div class="gmail_quote">On Mon, Oct 24, 2011 at 3:42 PM, Krzysztof Mazurek <span dir="ltr"><<a href="mailto:kmazurek@neotek.waw.pl">kmazurek@neotek.waw.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Welcome, <br><br>on RHEL 6.1 and 6.2 beta I can see quite funny thing ...<br><br>ssh root@machine_IP<br>....<br><br>login as: root<br>Access denied<br>root@machine_IP's password: <br><br><br>First is displayed "Access denied" and then suddenly password prompt appears ... and you can login without any problem ;)<br>

Is it just in my case? <br><br>In sshd_config file I have:<br>[....]<br># Authentication:<br><br>#LoginGraceTime 2m<br>#PermitRootLogin yes<br>#StrictModes yes<br>#MaxAuthTries 6<br>#MaxSessions 10<br>[,...]<br>UsePAM yes<br>

[...]<br><br>Krzysztof Mazurk<br><br><br>
<br>_______________________________________________<br>
rhelv6-list mailing list<br>
<a href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhelv6-list" target="_blank">https://www.redhat.com/mailman/listinfo/rhelv6-list</a><br>
<br></blockquote></div><br></div>