Re: Cannot connect to a Sun server using xterm
Hello, Pardon my ignorance, but what am I supposed to do to solve the problem ? Regards, Marek Alexander Gottwald skrev: On Tue, 3 May 2005, a12 wrote: connect /tmp/.X11-unix/X0: No such file or directory X connection to localhost:10.0 broken (explicit kill or server shutdown). What about this message ? This just means your local server is not running. Same as before with can't connect to localhost:6000. But this time DISPLAY was :0.0, not localhost:0.0 bye ago
Re: Cannot connect to a Sun server using xterm
On Wed, 4 May 2005, a12 wrote: Hello, Pardon my ignorance, but what am I supposed to do to solve the problem ? Start XWin. -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Cannot connect to a Sun server using xterm
Which means: use XDMCP don't use xterm. Please correct me, if I am wrong. Regards, Marek Alexander Gottwald skrev: On Wed, 4 May 2005, a12 wrote: Hello, Pardon my ignorance, but what am I supposed to do to solve the problem ? Start XWin.
Re: Cannot connect to a Sun server using xterm
On Wed, 4 May 2005, a12 wrote: Alexander Gottwald skrev: On Wed, 4 May 2005, a12 wrote: Pardon my ignorance, but what am I supposed to do to solve the problem ? Start XWin. Which means: use XDMCP don't use xterm. Please correct me, if I am wrong. You're wrong. It means exactly what it says: run startx (or startxwin.bat, or start XWin.exe ..., or any of your favorite methods for starting the X server on your local machine) before running ssh -X/Y. And please don't top-post. Thanks. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT
Re: Cannot connect to a Sun server using xterm
Hello again, I logged into sun host again, and entered: xauth remove localhost:10.0 [not del] Then I started the graphical application, and I still get the following error: X11 connection rejected because of wrong authentication. X connection to localhost:10.0 broken (explicit kill or server shutdown). Any hints ? Regards, Marek Alexander Gottwald wrote: On Mon, 2 May 2005, a12 wrote: Hi, When I enter in the PC window: ssh -Y [EMAIL PROTECTED] I get a request for password, and I am logged into the Sun host. Then I start the graphical application in the Sun host, and I get the following error message: X11 connection rejected because of wrong authentication. X connection to localhost:10.0 broken (explicit kill or server shutdown). So I checked the DISPLAY variable, and as it was set to 'localhost:10.0', I changed it to 'a.b.c.d:10.0', and restarted the application in the Sun host. Guess what? localhost:10.0 was all right and a.b.c.d:10.0 is wrong. There may be some older authentication info left. Maybe this helps: $ xauth del localhost:10.0 bye ago
Re: Cannot connect to a Sun server using xterm
On Tue, 3 May 2005, a12 wrote: Hello again, I logged into sun host again, and entered: xauth remove localhost:10.0 [not del] Then I started the graphical application, and I still get the following error: X11 connection rejected because of wrong authentication. X connection to localhost:10.0 broken (explicit kill or server shutdown). Any hints ? Maybe you have to remove $HOME/.Xauthority on windows and unix side. I've not seen the message for some time now and can't tell which side has the wrong credentials. Maybe DISPLAY=:0.0 ssh ... helps (instead of DISPLAY=localhost:0.0) bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Cannot connect to a Sun server using xterm
Hello again, I have no .Xauthority in $HOME in my PC. I logged into the Sun host using: ssh -Y [EMAIL PROTECTED] removed .Xauthority in $HOME there, logged out logged in again. When I started the graphical application in the Sun host, I received the following error: *** OI_init: Error, cannot connect to X server ntc: couldn't open a connection to a X server So, I checked that there still is no .Xauthority in $HOME in the Sun host, logged out, and logged in using: $ DISPLAY=:0.0 ssh -Y [EMAIL PROTECTED] and I received the following message: Warning: No xauth data; using fake authentication data for X11 forwarding. Last login: Tue May 3 15:54:34 2005 from 131.115.36.154 /usr/openwin/bin/xauth: creating new authority file /export/home/neat/.Xauthority When I started the graphical application, I received the following message: connect /tmp/.X11-unix/X0: No such file or directory X connection to localhost:10.0 broken (explicit kill or server shutdown). What about this message ? Regards, Marek Alexander Gottwald wrote: On Tue, 3 May 2005, a12 wrote: Hello again, I logged into sun host again, and entered: xauth remove localhost:10.0 [not del] Then I started the graphical application, and I still get the following error: X11 connection rejected because of wrong authentication. X connection to localhost:10.0 broken (explicit kill or server shutdown). Any hints ? Maybe you have to remove $HOME/.Xauthority on windows and unix side. I've not seen the message for some time now and can't tell which side has the wrong credentials. Maybe DISPLAY=:0.0 ssh ... helps (instead of DISPLAY=localhost:0.0) bye ago
Re: Cannot connect to a Sun server using xterm
On Tue, 3 May 2005, a12 wrote: connect /tmp/.X11-unix/X0: No such file or directory X connection to localhost:10.0 broken (explicit kill or server shutdown). What about this message ? This just means your local server is not running. Same as before with can't connect to localhost:6000. But this time DISPLAY was :0.0, not localhost:0.0 bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Cannot connect to a Sun server using xterm
On Mon, 2 May 2005, a12 wrote: Hello X users, I access a Sun server using: XWin.exe -query sun-host I login, and start an application in the Sun server correctly. When I start xterm using startxwin.bat, and then I start xterm to a Sun server using: xterm -e /bin/telnet sun-host I get a new xterm window from the Sun server, and I login to the Sun server correctly. Then I start a graphical application in the Sun server, and I get the following error: *** OI_init: Error, cannot connect to X server ntc: couldn't open a connection to a X server What have I missed ? telnet does know nothing about the xserver. Use ssh instead. xterm -e ssh -Y sun-host This will connect using the secure ssh protocol and tunnel all X11 traffic thought the ssh connection. If this does not work check the FAQ entries about ssh connections http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-ssh-no-x11forwarding bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Cannot connect to a Sun server using xterm
Hello Alexander, Thank you very much for your reply. Following your hints, I entered in the xterm window in the PC: xterm -e ssh -Y sun-host Then a SSH window appeared in the PC: The authenticity of host 'borsen1 (a.b.c.d)' can't be established. RSA key fingerprint is x:y:z:... . Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'borsen1,a.b.c.d' (RSA) to the list of known hosts. Password: Whatever I entered as the password, the password question reappeared, and eventually the ssh window was closed. When I installed Cygwin ssh, I did not use any password. Any hints ? Regards, Marek Alexander Gottwald skrev: On Mon, 2 May 2005, a12 wrote: Hello X users, I access a Sun server using: XWin.exe -query sun-host I login, and start an application in the Sun server correctly. When I start xterm using startxwin.bat, and then I start xterm to a Sun server using: xterm -e /bin/telnet sun-host I get a new xterm window from the Sun server, and I login to the Sun server correctly. Then I start a graphical application in the Sun server, and I get the following error: *** OI_init: Error, cannot connect to X server ntc: couldn't open a connection to a X server What have I missed ? telnet does know nothing about the xserver. Use ssh instead. xterm -e ssh -Y sun-host This will connect using the secure ssh protocol and tunnel all X11 traffic thought the ssh connection. If this does not work check the FAQ entries about ssh connections http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-ssh-no-x11forwarding bye ago
Re: Cannot connect to a Sun server using xterm
On Mon, 2 May 2005, a12 wrote: Password: Whatever I entered as the password, the password question reappeared, and eventually the ssh window was closed. When I installed Cygwin ssh, I did not use any password. Any hints ? You are connecting to the sun server and must provide the password from the sun server. most likely the same as with telnet bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Cannot connect to a Sun server using xterm
Hello again, Following your reply below, I created an userid in the Sun server, and entered: xterm -e ssh -Y sun-host In order to test the graphical aplication in the Sun server, I closed both X windows, entered startxwin.bat in a DOS window, and entered in the first X window: xterm -e ssh -Y userid@sun-host sun-host Then I replied to the password request, and the X window from the Sun server just closed. I have also tried: xterm -e ssh userid@sun-host -Y sun-host replied to the password request, and the X window from the Sun server closed too. Any hints ? Regards, Marek Alexander Gottwald skrev: On Mon, 2 May 2005, a12 wrote: Password: Whatever I entered as the password, the password question reappeared, and eventually the ssh window was closed. When I installed Cygwin ssh, I did not use any password. Any hints ? You are connecting to the sun server and must provide the password from the sun server. most likely the same as with telnet bye ago
Re: Cannot connect to a Sun server using xterm
On Mon, 2 May 2005, a12 wrote: Hello again, Following your reply below, I created an userid in the Sun server, and entered: xterm -e ssh -Y sun-host In order to test the graphical aplication in the Sun server, I closed both X windows, entered startxwin.bat in a DOS window, and entered in the first X window: xterm -e ssh -Y userid@sun-host sun-host Then I replied to the password request, and the X window from the Sun server just closed. I have also tried: xterm -e ssh userid@sun-host -Y sun-host replied to the password request, and the X window from the Sun server closed too. after ssh failed, the xterm is closed because it was not interactive. You should try starting ssh from the cygwin prompt first. This will keep the error message. open cygwin prompt $ ssh userid@sun-host -Y sun-host bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
RE: Cannot connect to a Sun server using xterm
I've done the following using our Sun hosts with success... ssh -Y -l root sunhost HFC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Gottwald Sent: Monday, May 02, 2005 8:14 AM To: cygwin-xfree@cygwin.com Subject: Re: Cannot connect to a Sun server using xterm On Mon, 2 May 2005, a12 wrote: Hello again, Following your reply below, I created an userid in the Sun server, and entered: xterm -e ssh -Y sun-host In order to test the graphical aplication in the Sun server, I closed both X windows, entered startxwin.bat in a DOS window, and entered in the first X window: xterm -e ssh -Y userid@sun-host sun-host Then I replied to the password request, and the X window from the Sun server just closed. I have also tried: xterm -e ssh userid@sun-host -Y sun-host replied to the password request, and the X window from the Sun server closed too. after ssh failed, the xterm is closed because it was not interactive. You should try starting ssh from the cygwin prompt first. This will keep the error message. open cygwin prompt $ ssh userid@sun-host -Y sun-host bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Cannot connect to a Sun server using xterm
Alexander Gottwald wrote: $ ssh userid@sun-host -Y sun-host Shouldn't this be just ssh -Y [EMAIL PROTECTED] or ssh -Y -l userid host ? If he does the above, it will treat the second sun-host as the command to run, which is probably why the window closes. Brian
RE: Cannot connect to a Sun server using xterm
On Mon, 2 May 2005, Henry Camacho wrote: I've done the following using our Sun hosts with success... ssh -Y -l root sunhost Right. But using root for doing non-administrative tasks is a high security risk. xterm -e ssh -Y userid@sun-host sun-host What does this mean: - start xterm (in the background) - in xterm start ssh to host sun-host with user userid - on sunhost start command sunhost the last part is the problem $ xterm -e ssh -Y userid@sun-host should work much better xterm -e ssh userid@sun-host -Y sun-host replied to the password request, and the X window from the Sun server closed too. after ssh failed, the xterm is closed because it was not interactive. You should try starting ssh from the cygwin prompt first. This will keep the error message. open cygwin prompt $ ssh userid@sun-host -Y sun-host Oops this should be $ ssh -Y [EMAIL PROTECTED] or like mentioned above $ ssh -Y -l userid sun-host bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Cannot connect to a Sun server using xterm
On Mon, 2 May 2005, Brian Dessent wrote: Alexander Gottwald wrote: $ ssh userid@sun-host -Y sun-host Shouldn't this be just ssh -Y [EMAIL PROTECTED] or ssh -Y -l userid host ? If he does the above, it will treat the second sun-host as the command to run, which is probably why the window closes. Of course. Missed that when doing copy-and-paste. Sometimes it's helpful to read twice *g* bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723
Re: Cannot connect to a Sun server using xterm
Hi, When I enter in the PC window: ssh -Y [EMAIL PROTECTED] I get a request for password, and I am logged into the Sun host. Then I start the graphical application in the Sun host, and I get the following error message: X11 connection rejected because of wrong authentication. X connection to localhost:10.0 broken (explicit kill or server shutdown). So I checked the DISPLAY variable, and as it was set to 'localhost:10.0', I changed it to 'a.b.c.d:10.0', and restarted the application in the Sun host. A while later, I got the following error message: *** OI_init: Error, cannot connect to X server ntc: couldn't open a connection to a X server ntc is the name of the graphical application. As far as I understand, ntc cannot connect to a X server. Any hints ? Regards, Marek Alexander Gottwald skrev: On Mon, 2 May 2005, Henry Camacho wrote: I've done the following using our Sun hosts with success... ssh -Y -l root sunhost Right. But using root for doing non-administrative tasks is a high security risk. xterm -e ssh -Y userid@sun-host sun-host What does this mean: - start xterm (in the background) - in xterm start ssh to host sun-host with user userid - on sunhost start command sunhost the last part is the problem $ xterm -e ssh -Y userid@sun-host should work much better xterm -e ssh userid@sun-host -Y sun-host replied to the password request, and the X window from the Sun server closed too. after ssh failed, the xterm is closed because it was not interactive. You should try starting ssh from the cygwin prompt first. This will keep the error message. open cygwin prompt $ ssh userid@sun-host -Y sun-host Oops this should be $ ssh -Y [EMAIL PROTECTED] or like mentioned above $ ssh -Y -l userid sun-host bye ago
Re: Cannot connect to a Sun server using xterm
On Mon, 2 May 2005, a12 wrote: Hi, When I enter in the PC window: ssh -Y [EMAIL PROTECTED] I get a request for password, and I am logged into the Sun host. Then I start the graphical application in the Sun host, and I get the following error message: X11 connection rejected because of wrong authentication. X connection to localhost:10.0 broken (explicit kill or server shutdown). So I checked the DISPLAY variable, and as it was set to 'localhost:10.0', I changed it to 'a.b.c.d:10.0', and restarted the application in the Sun host. Guess what? localhost:10.0 was all right and a.b.c.d:10.0 is wrong. There may be some older authentication info left. Maybe this helps: $ xauth del localhost:10.0 bye ago -- [EMAIL PROTECTED] http://www.gotti.org ICQ: 126018723