Red Hat Bugzilla – Bug 122148
Bind to port 22 on 0.0.0.0 failed (IPv6 v IPv4 confusion)
Last modified: 2007-11-30 17:10:41 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040116
Description of problem:
While the system boots up, you can see this thing in /var/log/secure:
Apr 30 15:01:49 disposable sshd: Server listening on :: port 22.
Apr 30 15:01:49 disposable sshd: error: Bind to port 22 on
0.0.0.0 failed: Address already in use.
But sshd seems to work fine otherwise.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Actual Results: see above
Expected Results: there should be no error
See bug #122043 for details about the system.
This also happened to me on a clean install of FC2. ssh works fine,
but I keep getting the error mentioned above.
I think I have found the reason behind this error. sshd binds IPv6
first, then when it tries to bind IPv4 it finds that the address is
already in use (hence the error). The reason it still continues to
function properly is because the IPv4 traffic is able to use the IPv6
socket that sshd is listneing on.
Could someone please re-lable this bug to FC version 2, and also add
some more keywords.
I added this line to /etc/modprobe.conf
install ipv6 /bin/true
Then rebooted the system. The ssh bug went away.
Now, i thought NETWORKING_IPV6=no in /etc/sysconfig/network was enough
to turn off IPv6. It's not enough on my system, i have to fiddle with
Maybe i should fill in a different bug report on this issue? :-)
This is a dupe of bug #120302
*** This bug has been marked as a duplicate of 120302 ***