Solved

X11 Forwarding over SSH w/ Putty

Posted on 2007-03-17
7
7,028 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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

759 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