Re: $DISPLAY variable empty after SSHing
X11 forwarding has to be enabled on the server. If it's not, then any request by the client to forward X connections (due to -X or -Y options or ForwardX11 in ~/.ssh/config or /etc/ssh_config or wherever) will be ignored. Check the sshd_config on the final host (the work computer). -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: $DISPLAY variable empty after SSHing
On 04/08/2009 05:27, Andrew DeFaria wrote: mcoughlin wrote: Well it is good to know that it is doable. My computer is running Windows Vista, the middle computer runs Red Hat 3, and the work computer runs Red Hat 4. ssh -X computer #2 Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. These warnings are significant. Why don't you resolve them first then see if the problem persists. I doubt very much that these warnings are significant. The OP says he tried with ssh -Y (which is the way to 'resolve' these warnings), as well as ssh -X. Not having X11 forwarding on the server as suggested elsewhere seems a far more likely cause. Adding '-v' to the ssh command line is usually helpful in debugging ssh problems. Note I have not totally figured out what causes this and what the proper solution is. It does involve using xauth and adding the proper auth key. My internet research on this has yielded hazy results. I also noticed that this tends to happen when you are not yourself. By that I mean that I've seen this happen when I su as somebody else then do an ssh to another machine. IOW somethings screwy in the authentication of the user thuse ssh/X considers it unsafe and perhaps is not passing along the proper DISPLAY because of this. A very clear explanation can be found in point 3 in this email [1] This is pointed to by the Cygwin/X FAQ and these issues discussed there, although I agree the language there could use some clarifications. [1] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00154.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
$DISPLAY variable empty after SSHing
This may be confusing because I have to SSH twice to reach the computer I work on. On my home computer, I begin by starting the X server. I run the command: bash-3.2$ echo $DISPLAY :0.0 And so it seems to be working fine. I then do: ssh -X computer #2 Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. And that is returned. ssh -Y computer #2 returns no errors. When I do [mcough...@lisa ~]$ echo $DISPLAY localhost:12.0 is returned for logging in with either the -X or -Y method. When I finally log into my work computer with either the -X or -Y method, -bash-3.2$ echo $DISPLAY returns nothing. And so when I attempt to use octave to plot, octave:2 plot(x) gnuplot: unable to open display '' gnuplot: X11 aborted. Obviously nothing happens. Can someone give me a clue? Thank you, Michael -- View this message in context: http://www.nabble.com/%24DISPLAY-variable-empty-after-SSHing-tp24800981p24800981.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: $DISPLAY variable empty after SSHing
You must have you ssh tool make X forward enabled. 2009/8/4 mcoughlin michael.w.cough...@gmail.com: This may be confusing because I have to SSH twice to reach the computer I work on. On my home computer, I begin by starting the X server. I run the command: bash-3.2$ echo $DISPLAY :0.0 And so it seems to be working fine. I then do: ssh -X computer #2 Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. And that is returned. ssh -Y computer #2 returns no errors. When I do [mcough...@lisa ~]$ echo $DISPLAY localhost:12.0 is returned for logging in with either the -X or -Y method. When I finally log into my work computer with either the -X or -Y method, -bash-3.2$ echo $DISPLAY returns nothing. And so when I attempt to use octave to plot, octave:2 plot(x) gnuplot: unable to open display '' gnuplot: X11 aborted. Obviously nothing happens. Can someone give me a clue? Thank you, Michael -- View this message in context: http://www.nabble.com/%24DISPLAY-variable-empty-after-SSHing-tp24800981p24800981.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: $DISPLAY variable empty after SSHing
In /etc/ssh/ssh_config ForwardX11Trusted yes Is that what you mean? Because that is how it is set currently (that file is on the in between computer). Michael Huang Bambo wrote: You must have you ssh tool make X forward enabled. 2009/8/4 mcoughlin michael.w.cough...@gmail.com: This may be confusing because I have to SSH twice to reach the computer I work on. On my home computer, I begin by starting the X server. I run the command: bash-3.2$ echo $DISPLAY :0.0 And so it seems to be working fine. I then do: ssh -X computer #2 Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. And that is returned. ssh -Y computer #2 returns no errors. When I do [mcough...@lisa ~]$ echo $DISPLAY localhost:12.0 is returned for logging in with either the -X or -Y method. When I finally log into my work computer with either the -X or -Y method, -bash-3.2$ echo $DISPLAY returns nothing. And so when I attempt to use octave to plot, octave:2 plot(x) gnuplot: unable to open display '' gnuplot: X11 aborted. Obviously nothing happens. Can someone give me a clue? Thank you, Michael -- View this message in context: http://www.nabble.com/%24DISPLAY-variable-empty-after-SSHing-tp24800981p24800981.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- View this message in context: http://www.nabble.com/%24DISPLAY-variable-empty-after-SSHing-tp24800981p24801331.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: $DISPLAY variable empty after SSHing
On 08/03/2009 09:39 PM, mcoughlin wrote: This may be confusing because I have to SSH twice to reach the computer I work on. On my home computer, I begin by starting the X server. I run the command: bash-3.2$ echo $DISPLAY :0.0 And so it seems to be working fine. I then do: ssh -X computer #2 Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. And that is returned. ssh -Y computer #2 returns no errors. When I do [mcough...@lisa ~]$ echo $DISPLAY localhost:12.0 is returned for logging in with either the -X or -Y method. When I finally log into my work computer with either the -X or -Y method, -bash-3.2$ echo $DISPLAY returns nothing. And so when I attempt to use octave to plot, octave:2 plot(x) gnuplot: unable to open display '' gnuplot: X11 aborted. Obviously nothing happens. Can someone give me a clue? Sounds like a configuration issue at the work computer. I don't have a problem starting xclock from the final machine I ssh -Y into. DISPLAY on the ssh'd machines get set to localhost:10.0 in my case. If DISPLAY isn't set to the same thing as it is on your computer #2, I'd suspect the configuration issue is there. For me, my first computer is running Cygwin 1.7 (not significant when compared to 1.5 in this case I would suspect) on XP. The 2nd machine is running Fedora 8. The 3rd machine is running MythDora 10 (i.e. essentially Fedora 10). No special configuration on any of these. Not sure if this helps much other than to indicate that this can be made to work (and possibly localizing which machine is the likely suspect.) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: $DISPLAY variable empty after SSHing
Well it is good to know that it is doable. My computer is running Windows Vista, the middle computer runs Red Hat 3, and the work computer runs Red Hat 4. Larry Hall (Cygwin) wrote: On 08/03/2009 09:39 PM, mcoughlin wrote: This may be confusing because I have to SSH twice to reach the computer I work on. On my home computer, I begin by starting the X server. I run the command: bash-3.2$ echo $DISPLAY :0.0 And so it seems to be working fine. I then do: ssh -X computer #2 Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. And that is returned. ssh -Y computer #2 returns no errors. When I do [mcough...@lisa ~]$ echo $DISPLAY localhost:12.0 is returned for logging in with either the -X or -Y method. When I finally log into my work computer with either the -X or -Y method, -bash-3.2$ echo $DISPLAY returns nothing. And so when I attempt to use octave to plot, octave:2 plot(x) gnuplot: unable to open display '' gnuplot: X11 aborted. Obviously nothing happens. Can someone give me a clue? Sounds like a configuration issue at the work computer. I don't have a problem starting xclock from the final machine I ssh -Y into. DISPLAY on the ssh'd machines get set to localhost:10.0 in my case. If DISPLAY isn't set to the same thing as it is on your computer #2, I'd suspect the configuration issue is there. For me, my first computer is running Cygwin 1.7 (not significant when compared to 1.5 in this case I would suspect) on XP. The 2nd machine is running Fedora 8. The 3rd machine is running MythDora 10 (i.e. essentially Fedora 10). No special configuration on any of these. Not sure if this helps much other than to indicate that this can be made to work (and possibly localizing which machine is the likely suspect.) -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _ A: Yes. Q: Are you sure? A: Because it reverses the logical flow of conversation. Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple -- View this message in context: http://www.nabble.com/%24DISPLAY-variable-empty-after-SSHing-tp24800981p24802076.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: $DISPLAY variable empty after SSHing
mcoughlin wrote: Well it is good to know that it is doable. My computer is running Windows Vista, the middle computer runs Red Hat 3, and the work computer runs Red Hat 4. ssh -X computer #2 Warning: untrusted X11 forwarding setup failed: xauth key data not generated Warning: No xauth data; using fake authentication data for X11 forwarding. These warnings are significant. Why don't you resolve them first then see if the problem persists. Note I have not totally figured out what causes this and what the proper solution is. It does involve using xauth and adding the proper auth key. My internet research on this has yielded hazy results. I also noticed that this tends to happen when you are not yourself. By that I mean that I've seen this happen when I su as somebody else then do an ssh to another machine. IOW somethings screwy in the authentication of the user thuse ssh/X considers it unsafe and perhaps is not passing along the proper DISPLAY because of this. -- Andrew DeFaria http://defaria.com Give a man a fish and he'll eat for a day, teach a man to phish and he'll suck your bank account dry -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple