Bug 122148 - Bind to port 22 on 0.0.0.0 failed (IPv6 v IPv4 confusion)
Summary: Bind to port 22 on 0.0.0.0 failed (IPv6 v IPv4 confusion)
Keywords:
Status: CLOSED DUPLICATE of bug 120302
Alias: None
Product: Fedora
Classification: Fedora
Component: openssh
Version: 2
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-04-30 21:59 UTC by Florin Andrei
Modified: 2007-11-30 22:10 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2005-02-07 16:22:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Florin Andrei 2004-04-30 21:59:51 UTC
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[1315]: Server listening on :: port 22.
Apr 30 15:01:49 disposable sshd[1315]: 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):
openssh-3.6.1p2-34

How reproducible:
Always

Steps to Reproduce:
1.boot up
2.
3.
    

Actual Results:  see above

Expected Results:  there should be no error

Additional info:

See bug #122043 for details about the system.

Comment 1 Adam Bowns 2004-05-29 15:58:42 UTC
This also happened to me on a clean install of FC2. ssh works fine,
but I keep getting the error mentioned above.

Comment 2 Adam Bowns 2004-05-29 22:50:44 UTC
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.

Comment 3 Florin Andrei 2004-06-17 19:12:42 UTC
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
modprobe.conf.
Maybe i should fill in a different bug report on this issue? :-)

Comment 4 Damien Miller 2004-08-25 00:55:58 UTC
This is a dupe of bug #120302

Comment 5 Tomas Mraz 2005-02-07 16:22:13 UTC

*** This bug has been marked as a duplicate of 120302 ***


Note You need to log in before you can comment on or make changes to this bug.