[opensuse] X11 forwarding on 11.4
I have two main boxes running, 11.2 which I replaced and relegated to server status for email and http, and 11.4 as main box. I ssh into the 11.2 box to read mail and administer ... I can access 11.2 from 11.4 and my wife's win7 (cygwin w/X and/or putty) box via ssh -X w/o any problem. Can run X apps w/o a problem. But with identical /etc/ssh/ssh{d}_config files I cannot forward X from 11.4 to the win7 box. I get: ssh -X user@192.168.1.10 xterm Password: xterm Xt error: Can't open display: xterm: DISPLAY is not set adding -vv to the ssh request provides: debug2: input_userauth_info_req debug2: input_userauth_info_req: num_prompts 0 debug1: Authentication succeeded (keyboard-interactive). Authenticated to 192.168.1.10 ([192.168.1.10]:22). debug1: channel 0: new [client-session] debug2: channel 0: send open debug1: Requesting no-more-sessions@openssh.com debug1: Entering interactive session. debug2: callback start debug2: x11_get_proto: /usr/bin/xauth list unix:11.0 2>/dev/null debug1: Requesting X11 forwarding with authentication spoofing. debug2: channel 0: request x11-req confirm 0 debug2: client_session2_setup: id 0 debug2: fd 3 setting TCP_NODELAY debug1: Sending environment. debug1: Sending env LANG = en_US.UTF-8 debug2: channel 0: request env confirm 0 debug1: Sending command: xterm debug2: channel 0: request exec confirm 1 debug2: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768 debug2: channel 0: rcvd adjust 2097152 debug2: channel_input_status_confirm: type 99 id 0 debug2: exec request accepted on channel 0 debug2: channel 0: rcvd ext data 64 xterm Xt error: Can't open display: amoung other output which seem irrelevant There is no problem with text access, just X. Where do I go from here? tks, -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/25/2011 8:23 AM, Patrick Shanahan wrote:
I have two main boxes running, 11.2 which I replaced and relegated to server status for email and http, and 11.4 as main box.
I ssh into the 11.2 box to read mail and administer ...
I can access 11.2 from 11.4 and my wife's win7 (cygwin w/X and/or putty) box via ssh -X w/o any problem. Can run X apps w/o a problem.
But with identical /etc/ssh/ssh{d}_config files I cannot forward X from 11.4 to the win7 box. I get: ssh -X user@192.168.1.10 xterm Password: xterm Xt error: Can't open display: xterm: DISPLAY is not set
In these identical sshd_config you specifically have uncommented and changed the X11Forwarding line to say "yes" ? (it is set to no by default). And since its a different machine, perhaps you use a different putty profile, does the putty profile for the 11.4 machine have Enable X11 checked? -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* John Andersen <jsamyth@gmail.com> [05-28-11 19:17]:
On 5/25/2011 8:23 AM, Patrick Shanahan wrote:
I have two main boxes running, 11.2 which I replaced and relegated to server status for email and http, and 11.4 as main box.
I ssh into the 11.2 box to read mail and administer ...
I can access 11.2 from 11.4 and my wife's win7 (cygwin w/X and/or putty) box via ssh -X w/o any problem. Can run X apps w/o a problem.
But with identical /etc/ssh/ssh{d}_config files I cannot forward X from 11.4 to the win7 box. I get: ssh -X user@192.168.1.10 xterm Password: xterm Xt error: Can't open display: xterm: DISPLAY is not set
In these identical sshd_config you specifically have uncommented and changed the X11Forwarding line to say "yes" ? (it is set to no by default).
192.168.1.3 19:46 Crash: ~ # grep X11Forwarding /mnt/nfs/top/etc/ssh/ssh* /mnt/nfs/top/etc/ssh/sshd_config:X11Forwarding yes /mnt/nfs/top/etc/ssh/sshd_config:# X11Forwarding no 192.168.1.10 19:46 Crash: ~ # grep X11Forwarding /etc/ssh/ssh* /etc/ssh/sshd_config:X11Forwarding yes /etc/ssh/sshd_config:# X11Forwarding no both boxes are the same...
And since its a different machine, perhaps you use a different putty profile, does the putty profile for the 11.4 machine have Enable X11 checked?
no putty involved, ssh running on both machines. 192.168.1.3 does forward X 192.168.1.10 does *not* forward X accessing from the win7 box I use xterm from cygwin. (or trying ) tks, -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/28/2011 4:51 PM, Patrick Shanahan wrote:
* John Andersen <jsamyth@gmail.com> [05-28-11 19:17]:
On 5/25/2011 8:23 AM, Patrick Shanahan wrote:
And since its a different machine, perhaps you use a different putty profile, does the putty profile for the 11.4 machine have Enable X11 checked?
no putty involved, ssh running on both machines.
Ok, well, you used the word putty in your first post, so I just naturally jumped to the conclusion that it was involved here, otherwise why in gods name did you mention it? So let me rephrase: With what ever you are launching the SSH session on windows, given that you are accessing two different machines, are you sure that both of those machines are set up exactly the same in your windows 7 software such that you forward X11 when accessing either machine? Is it possible there is a user specific ssh config in the users ~.ssh/ directory that is over-riding the one in /etc Have you turned off the opensuse 11.4 firewall momentarily to see if this solves things? I just completed a fresh install of 11.4 on a brand new drive, and other than starting the service and opening a firewall port I don't remember doing anything else to get to get ssh with XForwarding working. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/28/2011 9:55 PM, John Andersen wrote:
On 5/28/2011 4:51 PM, Patrick Shanahan wrote:
* John Andersen<jsamyth@gmail.com> [05-28-11 19:17]:
On 5/25/2011 8:23 AM, Patrick Shanahan wrote:
And since its a different machine, perhaps you use a different putty profile, does the putty profile for the 11.4 machine have Enable X11 checked? no putty involved, ssh running on both machines.
Ok, well, you used the word putty in your first post, so I just naturally jumped to the conclusion that it was involved here, otherwise why in gods name did you mention it?
So let me rephrase: With what ever you are launching the SSH session on windows, given that you are accessing two different machines, are you sure that both of those machines are set up exactly the same in your windows 7 software such that you forward X11 when accessing either machine?
Is it possible there is a user specific ssh config in the users ~.ssh/ directory that is over-riding the one in /etc
Have you turned off the opensuse 11.4 firewall momentarily to see if this solves things?
I just completed a fresh install of 11.4 on a brand new drive, and other than starting the service and opening a firewall port I don't remember doing anything else to get to get ssh with XForwarding working.
To run X apps on windows you'll need an X server like Xming. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Michael S. Dunsavage <mikesd1981@verizon.net> [05-28-11 22:23]:
To run X apps on windows you'll need an X server like Xming.
cygwin/X -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/29/2011 12:19 AM, Patrick Shanahan wrote:
* Michael S. Dunsavage<mikesd1981@verizon.net> [05-28-11 22:23]:
To run X apps on windows you'll need an X server like Xming. cygwin/X
I couldn't tell. I was getting confused how many of the machines were windows 7 and were running cygwin. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Patrick Shanahan wrote:
* Michael S. Dunsavage<mikesd1981@verizon.net> [05-28-11 22:23]:
To run X apps on windows you'll need an X server like Xming.
cygwin/X
I've found Xming is easier to configure and use than cygwin/X. If you need cygwin, you can install it without the /X and use Xming, as I have done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* James Knott <james.knott@rogers.com> [05-29-11 08:54]:
Patrick Shanahan wrote:
* Michael S. Dunsavage<mikesd1981@verizon.net> [05-28-11 22:23]:
To run X apps on windows you'll need an X server like Xming. cygwin/X
I've found Xming is easier to configure and use than cygwin/X. If you need cygwin, you can install it without the /X and use Xming, as I have done.
I experienced little problem there, but X on win still does not explain or solve that X forwarding is not working (for me) between two linux, 11.2 and 11.4, machines .... ssh works fine, I just cannot forward X from 11.4 to my 11.2 machine on win7, or any other machine I have tried. The problem lies on the 11.4 machine, only common denominator. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/29/2011 5:54 AM, James Knott wrote:
Patrick Shanahan wrote:
* Michael S. Dunsavage<mikesd1981@verizon.net> [05-28-11 22:23]:
To run X apps on windows you'll need an X server like Xming.
cygwin/X
I've found Xming is easier to configure and use than cygwin/X. If you need cygwin, you can install it without the /X and use Xming, as I have done.
Please lets not hijack this thread comparing clients since the client is not the problem here. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* John Andersen <jsamyth@gmail.com> [05-28-11 21:57]:
On 5/28/2011 4:51 PM, Patrick Shanahan wrote:
* John Andersen <jsamyth@gmail.com> [05-28-11 19:17]:
On 5/25/2011 8:23 AM, Patrick Shanahan wrote:
And since its a different machine, perhaps you use a different putty profile, does the putty profile for the 11.4 machine have Enable X11 checked?
no putty involved, ssh running on both machines.
Ok, well, you used the word putty in your first post, so I just naturally jumped to the conclusion that it was involved here, otherwise why in gods name did you mention it?
quote "I can access 11.2 from 11.4 and my wife's win7 (cygwin w/X and/or putty) box via ssh -X w/o any problem. Can run X apps w/o a problem." What I failed to say was that I cannot forward X from the 192.168.1.10 (11.4) box to the 192.168.1.3 (11.2) box either
So let me rephrase: With what ever you are launching the SSH session on windows, given that you are accessing two different machines, are you sure that both of those machines are set up exactly the same in your windows 7 software such that you forward X11 when accessing either machine?
the two linux boxes have identical ssh and firewall settings for X access.
Is it possible there is a user specific ssh config in the users ~.ssh/ directory that is over-riding the one in /etc
the only thing the <user>/.ssh/ is known.hosts
Have you turned off the opensuse 11.4 firewall momentarily to see if this solves things?
yes, no difference :^(
I just completed a fresh install of 11.4 on a brand new drive, and other than starting the service and opening a firewall port I don't remember doing anything else to get to get ssh with XForwarding working.
running sshd on port 22 on 192.168.1.10 (11.4), same as on 192.168.1.3 (11.2). tks, -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/28/2011 9:17 PM, Patrick Shanahan wrote:
What I failed to say was that I cannot forward X from the 192.168.1.10 (11.4) box to the 192.168.1.3 (11.2) box either
Ah, well that does throw a whole new light on it... I found this on google: http://www.cisl.ucar.edu/docs/ssh/guide/node30.html Which seems to suggest that there may be a problem with your ".Xauthority" file on 11.4, either locked or has wrong permissions or something. The age also discusses turning on -v for diagnosing. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* John Andersen <jsamyth@gmail.com> [05-29-11 14:09]:
On 5/28/2011 9:17 PM, Patrick Shanahan wrote:
What I failed to say was that I cannot forward X from the 192.168.1.10 (11.4) box to the 192.168.1.3 (11.2) box either
Ah, well that does throw a whole new light on it...
I found this on google: http://www.cisl.ucar.edu/docs/ssh/guide/node30.html Which seems to suggest that there may be a problem with your ".Xauthority" file on 11.4, either locked or has wrong permissions or something. The age also discusses turning on -v for diagnosing.
I don't believe there is a problem with ~/.Xauthority on 11.4, at least there is no indication in the debug output ( -vv). That output is here: http://wahoo.no-ip.org/~pat/ssh.sigon.txt tks, -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/29/2011 11:45 AM, Patrick Shanahan wrote:
* John Andersen <jsamyth@gmail.com> [05-29-11 14:09]:
On 5/28/2011 9:17 PM, Patrick Shanahan wrote:
What I failed to say was that I cannot forward X from the 192.168.1.10 (11.4) box to the 192.168.1.3 (11.2) box either
Ah, well that does throw a whole new light on it...
I found this on google: http://www.cisl.ucar.edu/docs/ssh/guide/node30.html Which seems to suggest that there may be a problem with your ".Xauthority" file on 11.4, either locked or has wrong permissions or something. The age also discusses turning on -v for diagnosing.
I don't believe there is a problem with ~/.Xauthority on 11.4, at least there is no indication in the debug output ( -vv). That output is here: http://wahoo.no-ip.org/~pat/ssh.sigon.txt
tks,
Ok, so the part that says: debug2: channel 0: rcvd ext data 64 xterm Xt error: Can't open display: xterm: DISPLAY is not set says something is not setting your DISPLAY environmental. If you can log in and get a text shell (not xterm) issue the following command: set | grep DISPLAY And you should see something like: DISPLAY=localhost:10.0 If not, it could still be something in the sshd_config. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* John Andersen <jsamyth@gmail.com> [05-29-11 20:23]:
Ok, so the part that says:
debug2: channel 0: rcvd ext data 64 xterm Xt error: Can't open display: xterm: DISPLAY is not set
says something is not setting your DISPLAY environmental.
If you can log in and get a text shell (not xterm) issue the following command:
set | grep DISPLAY
And you should see something like: DISPLAY=localhost:10.0
set | grep DISPLAY has no output. from the original post: xterm Xt error: Can't open display: xterm: DISPLAY is not set *On* the machine 192.168.1.10 (11.4), set | grep DISPLAY DISPLAY=:0 But ssh'ing (-X) into that machine $DISPLAY is not set.
If not, it could still be something in the sshd_config.
/etc/ssh/sshd_config contains: #X11DisplayOffset 10 but, iiuc, that is *default*. I will change it, uncomment it and try... same result :^( tks, -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 5/30/2011 3:32 AM, Patrick Shanahan wrote:
* John Andersen <jsamyth@gmail.com> [05-29-11 20:23]:
Ok, so the part that says:
debug2: channel 0: rcvd ext data 64 xterm Xt error: Can't open display: xterm: DISPLAY is not set
says something is not setting your DISPLAY environmental.
If you can log in and get a text shell (not xterm) issue the following command:
set | grep DISPLAY
And you should see something like: DISPLAY=localhost:10.0
set | grep DISPLAY has no output.
from the original post: xterm Xt error: Can't open display: xterm: DISPLAY is not set
*On* the machine 192.168.1.10 (11.4), set | grep DISPLAY DISPLAY=:0
But ssh'ing (-X) into that machine $DISPLAY is not set.
If not, it could still be something in the sshd_config.
/etc/ssh/sshd_config contains: #X11DisplayOffset 10 but, iiuc, that is *default*. I will change it, uncomment it and try...
same result :^(
tks,
Well you have just confirmed my suspicions. What does X11UseLocalhost say. (It should be YES). Some report success by setting it to NO, but this is non-standard and not what you want for an ssh tunnel. With a firewall running it shouldn't work when set to NO). Also, check your /etc/hosts file and make sure there is a line in there like 127.0.0.1 localhost and also fe00::0 ipv6-localhost If "localhost" does not resolve to a loop back interface things break. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* John Andersen <jsamyth@gmail.com> [05-30-11 15:43]:
On 5/30/2011 3:32 AM, Patrick Shanahan wrote:
/etc/ssh/sshd_config contains: #X11DisplayOffset 10 but, iiuc, that is *default*. I will change it, uncomment it and try...
same result :^(
tks,
Well you have just confirmed my suspicions. What does X11UseLocalhost say. (It should be YES).
it does
Some report success by setting it to NO, but this is non-standard and not what you want for an ssh tunnel. With a firewall running it shouldn't work when set to NO).
Also, check your /etc/hosts file and make sure there is a line in there like 127.0.0.1 localhost and also fe00::0 ipv6-localhost
If "localhost" does not resolve to a loop back interface things break.
ping localhost results in 127.0.0.1 the /etc/hosts is as you indicated, no change. also: Removing .Xauthority provides the same missing DISPLAY. -- (paka)Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 http://en.opensuse.org openSUSE Community Member Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
James Knott
-
John Andersen
-
Michael S. Dunsavage
-
Patrick Shanahan