Red Hat Bugzilla – Bug 735889
sshd continues to try to bind to IPv6 when IPv6 is disabled; breaks X11 forwarding.
Last modified: 2012-02-28 06:02:36 EST
Description of problem:
Due to project requirements I've disabled IPv6 (via sysctl net.ipv6.conf.all.disable_ipv6=1) on a number of machines.
Once done, I could no longer ssh -X or SSH -y into the effected machines.
Starting sshd from command line returns the following output:
$ /usr/sbin/sshd -d
debug1: sshd version OpenSSH_5.6p1
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
Set /proc/self/oom_score_adj from 0 to -1000
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
Forcing IPv4 only (via -4 command line) solved the problem.
(Either /usr/sbin -D -4 or creating /etc/sysconfig/sshd that contains OPTIONS=-4)
Version-Release number of selected component (if applicable):
Still present in F16.
Work-around requires patch in https://bugzilla.redhat.com/show_bug.cgi?id=754732.
You can also set 'AddressFamily inet' in /etc/ssh/sshd_config
Thanks for the suggestion.
Should any == "any available" as opposed to "inet + inet6"?
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
It seems that usage of AI_ADDRCONFIG flag in getaddrinfo() would help here.
openssh-5.6p1-35.fc15 has been submitted as an update for Fedora 15.
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openssh-5.6p1-35.fc15'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Any chance of getting a fixed F16 build out?
I mass migrated all my desktops/workstations/servers to F16 a couple of months ago.
openssh-5.8p2-25.fc16 has been submitted as an update for Fedora 16.
openssh-5.9p1-19.fc17 has been submitted as an update for Fedora 17.
openssh-5.6p1-35.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
openssh-5.8p2-25.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.
openssh-5.9p1-19.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.