Red Hat Bugzilla – Bug 201594
sshd does not create ipv4 listen socket for X11 forwarding
Last modified: 2007-11-30 17:07:26 EST
Description of problem: X11 forwarding doesn't function with IPv4 by default Version-Release number of selected component (if applicable): openssh-3.9p1-8.RHEL4.12 How reproducible: Steps to Reproduce: 1. Make entries in /etc/ssh/sshd_config: X11Forwarding yes X11UseLocalhost no 2. restart sshd, e.g., sudo /etc/init.d/sshd restart 3. attempt to start an X client Actual results: Client gets "connection refused". Netstat -tan shows tcp 0 0 :::6010 :::* LISTEN Expected results: Client get successful connection. Netstat -tan shows tcp 0 0 0.0.0.0:6010 0.0.0.0:* LISTEN Additional info: Successful workaround: in /etc/sysconfig/sshd, put OPTIONS=-4
The problem is not with the :::6010 output but with the fact that sshd sets incorrectly IPV6_V6ONLY socket option on the socket.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
Fixed in openssh-3.9p1-8.RHEL4.18
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2007-0257.html