Print

Print


Mauricio Tavares wrote:
>         I have a bit of a problem with an old redhat box. ssh is installed
> in the machine but sshd was not running.  I can ssh out of it to anywhere
> I want, So, I go to sshd_config, tell it not to let root login, save, and
> start sshd. Then, I try to ssh to itself, as in
> 
> raub@testmachine>ssh raub@localhost
> 
> Here is what the log files have to say about the above:
> 
> Aug 13 12:05:11 testmachine sshd[10347]: Failed password for raub from
> 127.0.0.1 port 1034 ssh2
> Aug 13 12:06:49 testmachine sshd[10347]: Failed password for raub from
> 127.0.0.1 port 1034 ssh2
> Aug 13 12:06:49 testmachine sshd[10347]: Failed password for raub from
> 127.0.0.1 port 1034 ssh2
> Aug 13 12:06:49 testmachine sshd[10347]: Failed keyboard-interactive for
> raub from 127.0.0.1 port 1034 ssh2
> Aug 13 12:06:49 testmachine last message repeated 2 times
> Aug 13 12:06:49 testmachine sshd[10347]: Connection closed by 127.0.0.1
> Aug 13 12:07:05 testmachine sshd[10349]: Failed password for raub from
> 127.0.0.1 port 1035 ssh2
> Aug 13 12:07:09 testmachine sshd[10349]: Connection closed by 127.0.0.1
> Aug 13 12:07:22 testmachine sshd[10351]: Failed password for raub from
> 127.0.0.1 port 1036 ssh2
> Aug 13 12:07:28 testmachine sshd[10351]: Connection closed by 127.0.0.1
> 
> /var/log/security in testmachine has no entries for the above ssh
> sessions. Any clues? I also tried to do ssh -vvv and even strace but they
> did not

Take a look in /etc/ssh/sshd_config for some silly things that may be 
set in there:

Is ListenAddress set? If so, what to?
What protocol is it set to listen to?
Is UsePAM set? If yes, what is you current PAM configuration?


-- 
Jon Akers
[log in to unmask]