Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Adding "X11UseLocalhost no" to /etc/ssh/sshd_config breaks x forwarding |
|---|---|
| Date: | Tue, 3 Apr 2007 22:49:35 +1000 |
On Tue, Apr 03, 2007 at 08:38:36AM -0400, Lewis E. Randerson wrote:
Darren, Ssh is listening to IPv6 only. Here is the result of the "netstat -an" test. "tcp 0 0 :::6011 :::* LISTEN". I'll have to fix that. Or else back out of "X11UseLocalhost no".
Out of curiousity, why do you need X11UseLocalhost=no no anyway?
As to the fix, if you have access to config.h during the build you can
just delete or comment out the "#define DONT_TRY_OTHER_AF" line.
If you don't (easily, eg if you're building an RPM) then you can try
the patch below.
BTW the origin of the DONT_TRY_OTHER_AF hack was a bit over 7 years
ago:
configure.in revision 1.94:
date: 2000/03/11 09:45:41; author: damien; state: Exp; lines: +22 -0
- IPv6 workarounds from Hideaki YOSHIFUJI
Index: channels.c
===================================================================
RCS file: /usr/local/src/security/openssh/cvs/openssh/channels.c,v
retrieving revision 1.251
diff -u -p -r1.251 channels.c
--- channels.c 28 Jan 2007 23:16:28 -0000 1.251
+++ channels.c 3 Apr 2007 12:45:47 -0000
@@ -2914,17 +2914,8 @@ x11_create_display_inet(int x11_display_
break;
}
socks[num_socks++] = sock;
-#ifndef DONT_TRY_OTHER_AF
if (num_socks == NUM_SOCKS)
break;
-#else
- if (x11_use_localhost) {
- if (num_socks == NUM_SOCKS)
- break;
- } else {
- break;
- }
-#endif
}
freeaddrinfo(aitop);
if (num_socks > 0)
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Adding "X11UseLocalhost no" to /etc/ssh/sshd_config breaks x forwarding, Lewis E. Randerson |
|---|---|
| Next by Date: | RE: Adding "X11UseLocalhost no" to /etc/ssh/sshd_config breaks x forwarding, Lewis E. Randerson |
| Previous by Thread: | RE: Adding "X11UseLocalhost no" to /etc/ssh/sshd_config breaks x forwarding, Lewis E. Randerson |
| Next by Thread: | RE: Adding "X11UseLocalhost no" to /etc/ssh/sshd_config breaks x forwarding, Lewis E. Randerson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |