SSHD failing on restart

Ed Greshko Ed.Greshko at greshko.com
Sat Jun 9 21:12:30 UTC 2012


On 06/10/2012 12:27 AM, Andrew Gray wrote:
> On Sat, 2012-06-09 at 15:09 +0200, Reindl Harald wrote:
>> Am 09.06.2012 14:53, schrieb Andrew Gray:
>>> /var/log/secure shows it can't bind:-
>>>
>>>> linuxmail sshd[804]: error: Bind to port 22 on 192.168.191.9 failed: Cannot assign requested address.
>>>> linuxmail sshd[804]: fatal: Cannot bind any address
>> sounds like network is not already up at this moment
>> it would be nice if people would post their configuration
>>
>> currently i can only guess you changed /etc/ssh/sshd_config
>> from "ListenAddress 0.0.0.0" to "ListenAddress 192.168.191.9"
>>
>> if so - why?!
>>
>>
> It is wired connectionwith fixed IP address 
>
> Very difficult to do a :-
>
> Try "ss -l -p -n | fgrep 22"
>
> As once the system is up port 22 isn't being used as I can restart
> sshd.service and it works. 
> Just doesn't bind during startup !
>
>
And....

When you start the service....what are the resulting lines in log/secure?

Did you modify /etc/ssh/sshd_config?



-- 
Never be afraid to laugh at yourself, after all, you could be missing out on the joke
of the century. -- Dame Edna Everage


More information about the users mailing list