Click to See Complete Forum and Search --> : [SOLVED] Windows and SSH


atray
11-11-2004, 11:05 AM
I have been googling and searching forums for the past couple of days for a solution to displaying X apps locally on a Windows machine and have yet to find a workable solution.

I have tried both OpenSSH for windows and Cygwin/X and neither function for me. I have gotten cygwin to run an Xterm but when I run a command such as:

ssh remotemachine xchat

I get a no display error even though I'm running a valid X program already. Maybe I'm using the wrong programs or maybe it's just not possible, but any info would be helpful.

Thanks,

mrBen
11-11-2004, 11:34 AM
You need to set up your ssh session with X forwarding _first_, using Putty or similar.

Alternatively, just use VNC, which works fine for me, and you can tunnel it through SSH easily ;)

lugoteehalt
11-11-2004, 12:51 PM
You need to set up your ssh session with X forwarding
ssh -X remotemachine xchat

Might be a simple way of doing it.

serz
11-11-2004, 01:01 PM
Originally posted by lugoteehalt
ssh -X remotemachine xchat

Might be a simple way of doing it.

Yes, but remember that you still need a X server running on the Windows machine.

atray
11-11-2004, 02:21 PM
Originally posted by lugoteehalt
ssh -X remotemachine xchat

Might be a simple way of doing it.

Perfect. Thanks for the help. I've never had to use -X before (Fedora Core 2 or Drake 10) therefore that was what was causing the problem.

BTW: I sort of had to combine both suggestions. First I launched the X server with Cygwin (startxwin.bat) then after its built in ssh client didn't work, I downloaded putty which has me succesfully sshing and running apps.

Thanks all,