Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-14-2003, 12:26 PM   #1
Registered: Mar 2003
Location: Stuttgart / Germany
Distribution: mandrake, debian
Posts: 34

Rep: Reputation: 15
X on a Windows Machine using ssh

Hi there,

I hope this is the right forum for my question.
I'm running a ssh-server on my linux machine.
When I'm at work on a windows machine I want to log an to my ssh-server via putty. So far this is working. But when I start X-Applications like xmms or xchat it doesn't work.
I mean that's no wonder, but is there any chance to get this working under windows?

thx for help
Old 10-14-2003, 01:19 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
If you install an X server for windows such as Cygwin it should work fine.
Old 10-14-2003, 09:16 PM   #3
LQ Newbie
Registered: Feb 2003
Distribution: Debian
Posts: 17

Rep: Reputation: 0
yes, Cygwin
of course, install the X server and openssh

then do something like
ssh -X ip_of_your_machine

-X tells X to forward X packets

on your Linux machine, check your sshd.conf and make sure X11Forwarding is set to True.
if you are behind a firewall and X can't connect to port 6000 on your local machine, do this

ssh -X -R 6000:localhost:6000 your_ip
this will set up X forwarding over the ssh tunnel

this should work. if you are still getting strange errors in X (unable to open display), try this in sh
$ echo $DISPLAY
should be somethign like localhost:0
if not (sometimes blank)
export DISPLAY=localhost:0

normally not necessary, but i had to do that in my setup
Old 10-15-2003, 05:21 AM   #4
Registered: Mar 2003
Location: Stuttgart / Germany
Distribution: mandrake, debian
Posts: 34

Original Poster
Rep: Reputation: 15
It's that easy???
Then I'll try that as soon as I'm at home!

Thanks a lot



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 10:45 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM
copy from windows machine to a linux machine s_deepblue Linux - Networking 3 03-12-2005 01:43 PM
how do i use my linux machine to be a gateway for a windows machine? Sanjuro Linux - Networking 2 02-09-2002 04:29 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration