more on non-working ssh

Mike Parson yellowdog-general@lists.terrasoftsolutions.com
Tue Mar 30 13:10:03 2004


On Tue, Mar 30, 2004 at 01:19:50PM -0600, Dan Day wrote:
>> 0.0.0.0 is binding to all available IPs on the box.
>>
>> If you have a box with multiple interfaces and only want sshd listening
>> on one of them, edit /etc/ssh/sshd_config and set the ListenAddress to
>> the IP of the appropriate interface.
>>
>> What error are you getting when you try and ssh into this box?
>> Connection-refused?
>> long timeout?
>> permission denied?
>>
>>-- 
>> Michael Parson
>> mparson@bl.org
>
> The error is:
>
>   ssh: connect to host Loki port 22: Connection refused
>
> Like Nathan I can ssh from this machine to others, but not to this 
> machine. I added:
>
>   ListenAddress  my_ip_address
>
> to the bottom of  /etc/ssh/sshd_config and restarted the sshd service 
> via
>
>   sudo /etc/rc.d/init.d/sshd restart
>
> Afterwards my /var/log/messages says it's now listening on 
> my_ip_address port 22 but I still can't connect.

Okay.

sshd is starting, but is it still running?

ps -auxw | grep [s]shd

It is possible that it's starting and dying a second or so later,
unlogged.

Do you have any iptables rules set?

-- 
Michael Parson
mparson@bl.org