LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-19-2010, 01:14 AM   #1
jprathap
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 9

Rep: Reputation: 0
Question Cannot accss X Window


Hi all,

I am using fedora 10. When i connect it from other system ,I am not able to access the gui application like (kate,gedit,etc...) even though i connect ssh with X option.

ssh -X root@192.168.1.11

I am able to login with the system. But

It showing error
kate: cannot connect to X server localhost:10.0

Please Help me.

Thanks in advance
 
Old 02-19-2010, 01:24 AM   #2
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Dear jprathap,

Please make sure X11 forwarding is enabled in both client and server configuration files of ssh on both the machines.

In /etc/ssh/sshd_config
Code:
X11Forwarding yes
In /etc/ssh/ssh_config
Code:
ForwardX11 yes
Restart sshd daemon on both the machiens
Code:
# /sbin/services sshd restart

Last edited by vinaytp; 02-19-2010 at 01:30 AM.
 
0 members found this post helpful.
Old 02-19-2010, 06:21 AM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 771
Blog Entries: 6

Rep: Reputation: 75
also try this way
ssh -X root@192.168.1.11 /usr/bin/konqueror
 
Old 02-19-2010, 06:25 AM   #4
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
Before 'ssh -X' run 'xhost+[<remote host>] to give the remote machine access to your display.
 
Old 02-19-2010, 08:23 AM   #5
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
I find using this easier:
Quote:
# ssh -Y root@192.168.1.11
It avoids the having to turn on forwarding all the time.

Last edited by ongte; 02-19-2010 at 08:24 AM.
 
Old 02-21-2010, 09:26 PM   #6
jprathap
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 9

Original Poster
Rep: Reputation: 0
Hi all...

I tried all the possible configurations as you mentioned. But i could not get what i expected.


My configuration is as follows
Quote:
# Accept locale-related environment variables
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL
AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
What would be the prob?
 
Old 02-21-2010, 09:38 PM   #7
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,447

Rep: Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204
Quote:
Originally Posted by JimBrewster View Post
Before 'ssh -X' run 'xhost+[<remote host>] to give the remote machine access to your display.
Running xhost+ is not needed if ssh is configured properly.
Additionally, it has serious security issues and so should be avoided.

Evo2.
 
Old 02-21-2010, 09:40 PM   #8
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,447

Rep: Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204
Quote:
Originally Posted by jprathap View Post
What would be the prob?
To help debug the problem please run ssh with the '-v' flag to get verbose output.

Evo2.
 
Old 02-26-2010, 04:12 AM   #9
jprathap
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 9

Original Poster
Rep: Reputation: 0
Cannot Access X window In fedora

I tried all the possibility that you've mentioned. But I am getting the same error.
Plz help me
 
Old 02-26-2010, 04:21 AM   #10
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 771
Blog Entries: 6

Rep: Reputation: 75
why not you paste back the command you do then with the error msg you got here

i ask you to do this and show back the error include the command you do

ssh -X root@192.168.1.11 /usr/bin/konqueror
 
Old 02-26-2010, 04:26 AM   #11
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,447

Rep: Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204Reputation: 1204
Quote:
Originally Posted by jprathap View Post
I tried all the possibility that you've mentioned. But I am getting the same error.
Plz help me
To debug a problem you should try to get all the information you can. In this case that means running your ssh client with '-vvv' flag and reading the sshd server logs (if you have access to them). If the above does not provided the information allowing you to solve your problem, post the information to the forum where it may allow other people to understand/solve the problem.

Evo2.
 
  


Reply

Tags
gui


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
Starting new terminal window or tab from existing window remaining as root? homerun Linux - Newbie 1 08-14-2009 11:34 AM
Trying to launch a new term window while executing a bash script in that window sfmadmax Linux - Newbie 5 12-09-2007 01:34 PM
xwindows, how can a client window be notified when parent window is moved/resized? shamju Linux - Desktop 1 02-03-2007 07:30 PM
why mandriva 10.2 gnome2.8 system freezes upon resizing/opening window/new window skaramanger Mandriva 8 08-30-2005 10:22 AM
why mandriva 10.2 gnome2.8 system freezes upon resizing/opening window/new window skaramanger Mandriva 2 08-15-2005 04:38 PM


All times are GMT -5. The time now is 02:55 AM.

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