Displaying 9 results from an estimated 9 matches for "x11_use_localhost".
2002 Apr 23
1
problem with X11 forwarding and use_localhost on Linux (solution)
On Linux (and others that define DONT_TRY_OTHER_AF)
x11_create_display_inet() will only use the first entry returned by
getaddrinfo(). When binding sockets to "ANY" this is fine on Linux
since a PF_INET6 socket bound to ANY will also include IPv4. However
when x11_use_localhost (X11UseLocalhost) is set, this is a problem.
getaddrinfo() will then return an AF_INET6 entry with IPv6 address
::1 and also AF_INET entry with IPv4 address 127.0.0.1. Currently
one binds only to the first (unless that bind fails), but should
bind to both. Even on Linux, a bind to ::1 does not incl...
2002 May 02
0
problem with X11 forwarding and use_localhost on Linux (solution) (fwd)
Hi,
I think we should try other AF for "x11_use_localhost" case.
--- openssh-3.1p1/channels.c Tue Mar 5 10:57:45 2002
+++ openssh-3.1p1-fix/channels.c Thu May 2 21:26:28 2002
@@ -2356,6 +2356,13 @@
continue;
}
}
+#ifdef IPV6_V6ONLY
+ if (ai->ai_family == AF_INET6) {
+ int on = 1;
+ if (setsockopt(sock, IPPROTO_IPV6, IPV6_...
2013 Jan 31
2
OpenSSH NoPty patch
....1p1-new/servconf.c
--- openssh-6.1p1/servconf.c 2012-07-31 02:22:38.000000000 +0000
+++ openssh-6.1p1-new/servconf.c 2013-01-31 17:12:36.000000000 +0000
@@ -85,6 +85,7 @@ initialize_server_options(ServerOptions
options->x11_forwarding = -1;
options->x11_display_offset = -1;
options->x11_use_localhost = -1;
+ options->no_pty = -1;
options->xauth_location = NULL;
options->strict_modes = -1;
options->tcp_keep_alive = -1;
@@ -201,6 +202,8 @@ fill_default_server_options(ServerOption
options->x11_use_localhost = 1;
if (options->xauth_location == NULL)
options->xauth...
2016 Jun 02
2
MaxDisplays configuration option
...0
@@ -148,9 +148,6 @@
/* -- X11 forwarding */
-/* Maximum number of fake X11 displays to try. */
-#define MAX_DISPLAYS 1000
-
/* Saved X11 local (client) display. */
static char *x11_saved_display = NULL;
@@ -3890,7 +3887,8 @@
*/
int
x11_create_display_inet(int x11_display_offset, int x11_use_localhost,
- int single_connection, u_int *display_numberp, int **chanids)
+ int max_displays, int single_connection, u_int *display_numberp,
+ int **chanids)
{
Channel *nc = NULL;
int display_number, sock;
@@ -3902,8 +3900,11 @@
if (chanids == NULL)
return -1;
+ /* Try max_displays ports sta...
2016 May 03
3
StreamLocal forwarding
On Tue, 3 May 2016, Rogan Dawes wrote:
> Hi Damien,
> Thanks for the response!
>
> I tried moving the StreamLocalBindUnlink directive outside of the Match
> rule, and it worked. But that doesn't explain why the Match was not
> correctly setting the directive:
>
> This is running on an alternate port with -ddd:
>
> debug3: checking match for 'User
2010 May 24
3
5.2: Solaris 10 x86 x-11 forwarding fails, assign requested address
...s.
How about adding it back under certain circumstances:
sellswor at sethe:~/tmp/2/openssh-5.5p1> diff -u channels.c channels.c.orig
--- channels.c 2010-05-24 14:44:15.000000000 -0600
+++ channels.c.orig 2010-05-24 14:43:32.000000000 -0600
@@ -3271,13 +3271,9 @@
if (x11_use_localhost)
channel_set_reuseaddr(sock);
if (bind(sock, ai->ai_addr, ai->ai_addrlen) < 0) {
- int loc_errno = errno;
debug2("bind port %d: %.100s", port, strerror(errno));...
2002 May 17
6
[Bug 164] X-forwarding when connecting to an IPv6-enabled host doesn't work.
http://bugzilla.mindrot.org/show_bug.cgi?id=164
------- Additional Comments From yoshfuji at linux-ipv6.org 2002-05-18 09:44 -------
Created an attachment (id=97)
Try to set IPV6_V6ONLY if available. Open ::1 and 127.0.0.1 if x11_use_localhost is set.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2002 Mar 13
7
[Bug 164] X-forwarding when connecting to an IPv6-enabled host doesn't work.
http://bugzilla.mindrot.org/show_bug.cgi?id=164
------- Additional Comments From stevesk at pobox.com 2002-03-14 06:17 -------
can you provide sshd -d output? i want to see any
debug messages from x11_create_display_inet().
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2012 May 08
1
About bug 640857
Hi, Dear OpenSSH support,
I'm writing to ask whether this bug is fixed in your openSSH 6.0. If no, do you have any plan?
https://bugzilla.redhat.com/show_bug.cgi?id=640857
Regards,
Carol