Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>UPDATE - FIXED IT</strong></p> <pre><code>restorecon -R -v -d /root/.ssh </code></pre> <p>This is a known issue with RH where directories get mislabelled and PAM prevends sshd from reading authorized_hosts when run as init script. You'll see the errors if you stumble across <code>/var/log/audit/audit.log</code>. Rare it seems but painful when it happens!</p> <p>More details at <a href="https://bugzilla.redhat.com/show_bug.cgi?id=499343" rel="nofollow">https://bugzilla.redhat.com/show_bug.cgi?id=499343</a></p> <p><strong>ORIGINAL POST</strong></p> <p>I've just hit what looks like exactly this problem. I had a poorly tuned VirtualBox (I hadn't told vbox to use 64bit) -- which when I cloned and restarted (in vbox RedHat 64-bit mode), started asking me for a password.</p> <p>The original image was fine -- with identical settings -- so I think the suggestion of being networking-related might be relevant, or else to do with server keys.</p> <p>The weird thing however is that if on the box, I kill the sshd process which autostarted, then manually run /usr/sbin/sshd as root, I can log in passwordless fine. <strong>A silly workaround, but usable.</strong></p> <p>So it is an /etc/init.d/sshd issue. But I haven't been able to track down what it is ... have tried chucking out most of the stuff in that script but it still prompts for password when invoked as <code>/etc/init.d/sshd start</code> but not when at <code>/usr/sbin/sshd</code>.</p> <p>Maybe these comments can help, and someone can then help further!?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload