Originally posted by SteveRiley
View Post
Announcement
Collapse
No announcement yet.
openssh-server in any software manager package ?
Collapse
This topic is closed.
X
X
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
I just rebooted my Debian server to see what OpenSSH might put in logs as it starts. Turns out not much:
Code:root@m92p:~# [B]grep -i ssh /var/log/*[/B] . . . /var/log/auth.log:Dec 12 00:00:09 m92p sshd[3104]: Server listening on 0.0.0.0 port 22. /var/log/auth.log:Dec 12 00:00:09 m92p sshd[3104]: Server listening on :: port 22. . . .
- Top
- Bottom
Comment
-
Originally posted by SteveRiley View PostI just rebooted my Debian server to see what OpenSSH might put in logs as it starts. Turns out not much:
Code:root@m92p:~# [B]grep -i ssh /var/log/*[/B] . . . /var/log/auth.log:Dec 12 00:00:09 m92p sshd[3104]: Server listening on 0.0.0.0 port 22. /var/log/auth.log:Dec 12 00:00:09 m92p sshd[3104]: Server listening on :: port 22. . . .
Aaaaaaaaargh.
The answer is in var/log/auth.log.
Dec 15 22:15:17 lat6400 sshd[1016]: error: Bind to port 22 on 192.168.2.9 failed: Cannot assign requested address.
Dec 15 22:15:17 lat6400 sshd[1016]: fatal: Cannot bind any address.
192.168.2.9 is the assigned IP address of the machine. So why does this happen ? Is the sshd starting before the IP config is in working order ? How can I check that and if so, fix it ?
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
Originally posted by Erwin Smout View PostDec 15 22:15:17 lat6400 sshd[1016]: error: Bind to port 22 on 192.168.2.9 failed: Cannot assign requested address.
Dec 15 22:15:17 lat6400 sshd[1016]: fatal: Cannot bind any address.Last edited by SteveRiley; Dec 15, 2014, 05:18 PM.
- Top
- Bottom
Comment
-
Originally posted by SteveRiley View PostAh, so you're specifying a particular listening address in your /etc/ssh/sshd_config. You are encountering Launchpad bug 216847 , which has not been fixed after over 6 1/2 years. Post #10 in the bug report contains a potential workaround. Or, you can revert to 0.0.0.0 for the listening address. You really only need to change this if you have muliple IP addresses on your system.Last edited by Erwin Smout; Dec 16, 2014, 03:57 PM.
- Top
- Bottom
Comment
Comment