Bug 735889

Summary: sshd continues to try to bind to IPv6 when IPv6 is disabled; breaks X11 forwarding.
Product: [Fedora] Fedora Reporter: Gilboa Davara <gilboad>
Component: opensshAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: mattias.ellert, mgrepl, rvokal, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openssh-5.9p1-19.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-25 08:30:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gilboa Davara 2011-09-06 03:27:45 UTC
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
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
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.
^C
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):
openssh-server-5.6p1-34.fc15.1.x86_64

How reproducible:
Always.

Comment 1 Gilboa Davara 2011-11-17 15:23:07 UTC
Still present in F16.
Work-around requires patch in https://bugzilla.redhat.com/show_bug.cgi?id=754732.

Comment 2 Tomas Mraz 2011-11-18 07:46:57 UTC
You can also set 'AddressFamily inet' in /etc/ssh/sshd_config

Comment 3 Gilboa Davara 2011-11-18 20:42:50 UTC
Thanks for the suggestion.
Should any == "any available" as opposed to "inet + inet6"?

- Gilboa

Comment 4 Fedora Admin XMLRPC Client 2011-11-30 12:26:20 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Petr Lautrbach 2012-02-14 15:27:27 UTC
It seems that usage of AI_ADDRCONFIG flag in getaddrinfo() would help here.

Comment 6 Fedora Update System 2012-02-14 16:38:31 UTC
openssh-5.6p1-35.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/openssh-5.6p1-35.fc15

Comment 7 Fedora Update System 2012-02-15 11:30:23 UTC
Package openssh-5.6p1-35.fc15:
* 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:
https://admin.fedoraproject.org/updates/FEDORA-2012-1673/openssh-5.6p1-35.fc15
then log in and leave karma (feedback).

Comment 8 Gilboa Davara 2012-02-22 07:27:17 UTC
Any chance of getting a fixed F16 build out?
I mass migrated all my desktops/workstations/servers to F16 a couple of months ago.

- Gilboa

Comment 9 Fedora Update System 2012-02-22 08:09:49 UTC
openssh-5.8p2-25.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/openssh-5.8p2-25.fc16

Comment 10 Fedora Update System 2012-02-22 08:28:16 UTC
openssh-5.9p1-19.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/openssh-5.9p1-19.fc17

Comment 11 Fedora Update System 2012-02-25 08:30:26 UTC
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.

Comment 12 Fedora Update System 2012-02-25 08:33:13 UTC
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.

Comment 13 Fedora Update System 2012-02-28 11:02:36 UTC
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.