Re: SSHD failing on restart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 9, 2012 at 8:53 AM, Andrew Gray <andrewg@xxxxxxxxxxxxxxx> wrote:
Hi

the sshd.service is enabled and is shown starting at the bottom of
"boot.log" but "secure" show it failing to bind to the PC IP address !


> [^[[1;32m  OK  ^[[0m] Started OpenSSH server daemon.
> [^[[1;32m  OK  ^[[0m] Started Samba SMB Daemon.
>          Starting CUPS Printing Service...
> [^[[1;32m  OK  ^[[0m] Started CUPS Printing Service.
> [^[[1;32m  OK  ^[[0m] Started Sendmail Mail Transport Agent.
>          Starting Sendmail Mail Transport Client...
>          Starting Daemon for managing, installing and generating color profiles...

/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.

/var/log/messages shows it exiting ?:-

> linuxmail systemd[1]: sshd.service: main process exited, code=exited, status=255
> linuxmail systemd[1]: Unit sshd.service entered failed state.

Yet when I login I can restart sshd.service and it will bind to port 22 on 192.168.191.9 and keeps running.

No firewall is running and selinux is in permissive mode
It is not the fastest machine Atlon 1200+ 1GB RAM
Kernel 3.4.0-1.fc17.i686 #1 SMP

Its my backup server and I need sshd running if it was remote I would be scuppered !

Why is it failing to bind to the IP address on startup ?


--
Andrew Gray <andrewg@xxxxxxxxxxxxxxx>
Linnet Solutions Ltd

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

I wonder if this has to do with timing. Perhaps on bootup the DNS does not resolve the IP address fast enough and SSHD would not start without knowing the host's FQDN? Just a guess but I have seen things like that.

Boris. 

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux