Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

X11 Forwarding over SSH w/ Putty

Posted on 2007-03-17
7
Medium Priority
?
7,081 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 9

Accepted Solution

by:
binary_1001010 earned 1500 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

618 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