Red Hat Bugzilla – Bug 52247
Binding OpenSSH to IPv6 fails with Address family for hostname not supported.
Last modified: 2008-05-01 11:38:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3 i686)
Description of problem:
I have installed the OpenSSH package that comes with redhat 7.1 on a box
that has IPv6 enabled. The IPv6 adres is received from a RadvD on a RedHat
6.2 box. When I try to connect to the IPv6 adres of the host I get the
error that a connection is refused.
When I remove the # in the sshd_config before the line "ListenAddress ::"
sshd will simply not start anymore, stating: Starting sshd:bad addr or
host: :: (Address family for hostname not supported).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install plain RedHat 7.1.
2. Enable IPv6 and make sure the system has a valid IPv6 IP adres and valid
DNS AAAA entries.
3. Install OpenSSH package.
4. run /etc/rc.d/init.d/sshd start
5. run ssh -6 <localehostname>
Actual Results: Secure connection to <localhostname> refused.
Expected Results: I would expect a request for a password.
When doing ssh -4 <localhostname> everything works perfect.
I have tested the src.rpm package on a RedHat 6.2 system and there I got
exactly the same results. On the redhat 6.2 system I had to ignore the
dependency on initscripts => 5.20. But OpenSSH runs fine with initscripts =
5.0. But IPv6 is still not working.
This, along with #45987, should be fixed when ipv6 support is re-enabled in
2.9p2-7 and later. Thanks!