Solved

X11 Forwarding over SSH w/ Putty

Posted on 2007-03-17
7
7,037 Views
Last Modified: 2008-01-09
I am trying to forward X11 to my local computer using putty and ssh.
I have tried this before with another remote server on my local network and it worked fine.
Now I am trying the same with a remote server and I get the error message "Can;t open display localhost:0.0"

In putty I have set the machine to X11 port forwarding on localhost:0
I have also started an Cygwin X-Server on 0.0.
My DISPLAY variable on the remote machine is set to localhost:0.0

How can I find out what is wrong?
0
Comment
Question by:tomanizer
  • 3
  • 3
7 Comments
 
LVL 9

Accepted Solution

by:
binary_1001010 earned 500 total points
ID: 18742955
X-windows forwarding :

To enable , change the line X11Forwarding yes
In /etc/ssh/sshd_config , then do a :

service sshd restart

Also, remember to change the DisallowTcp=false in /etc/X11/gdm/gdm.conf
0
 
LVL 6

Expert Comment

by:_iskywalker_
ID: 18743099
to assure it works:
ssh -X myremote
export DISPLAY=myhost:0.0
0
 

Author Comment

by:tomanizer
ID: 18745227
Thanks guys. a few more questionsÖ

How can I restart the sshd service?
I cannot find gdm in my X11 folder.

iskywalker: what do I need to replace myremote and myhost with?
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 9

Expert Comment

by:binary_1001010
ID: 18754586
are you using Redhat or ubuntu?  

to restart sshd in  redhat  :  service sshd restart


myremote is the linux server ip.
myhost is the ip of the PC where cygwin is running, i assum it is xp?
0
 

Author Comment

by:tomanizer
ID: 18755105
Thanks binary.

The distribution is SUSE 10.0.
I tried "service ssh restart" but the service command is unknown.
Cygwin is running on XP.

I cannot find the gdm or the gdm directory. What does it stand for?
0
 
LVL 9

Expert Comment

by:binary_1001010
ID: 18756870
sorry man, i am not sure about suse.

have you try google?
0
 

Author Comment

by:tomanizer
ID: 18817010
I could not figure out how to restart the service.
So I rebooted the server...
Now it works following Binary's suggestions.
Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now