LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 11-23-2014, 06:46 AM   #1
jokar.mohsen
Member
 
Registered: Jul 2008
Location: Tehran
Posts: 441

Rep: Reputation: 22
Unhappy X forwarding over ssh not work :(


hello all.
how are you?
I use CentOS 6.5 x64 and I wan to use xterm but it show me an error :

[jokar@Syslog ~]$ xterm
xterm Xt error: Can't open display:
xterm: DISPLAY is not set

I edited SSH config as below :

AllowAgentForwarding yes
AllowTcpForwarding yes
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no

and use "ssh -y XXX@ip" but my problem not solved . How can I solve it?
My goal is to use "rxvt-unicode".

Cheers.
 
Old 11-23-2014, 08:22 AM   #2
eylli
LQ Newbie
 
Registered: Jun 2008
Posts: 17

Rep: Reputation: 2
X forwarding over ssh not work :(

export display
 
Old 11-23-2014, 08:23 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
After you modified your sshd_config file did you restart the ssh daemon?

Are you using the exact command as posted? should be a -Y vs -y. Check the ssh man pages.
 
1 members found this post helpful.
Old 11-23-2014, 08:23 AM   #4
eylli
LQ Newbie
 
Registered: Jun 2008
Posts: 17

Rep: Reputation: 2
X forwarding over ssh not work :(

xhost + yourhost
 
Old 11-24-2014, 04:18 AM   #5
jokar.mohsen
Member
 
Registered: Jul 2008
Location: Tehran
Posts: 441

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by eylli View Post
xhost + yourhost
172.30.9.18 being added to access control list
 
Old 11-24-2014, 04:20 AM   #6
jokar.mohsen
Member
 
Registered: Jul 2008
Location: Tehran
Posts: 441

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by michaelk View Post
After you modified your sshd_config file did you restart the ssh daemon?

Are you using the exact command as posted? should be a -Y vs -y. Check the ssh man pages.
Thank you so much. When I use -Y then "xterm" command worked
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to SSH to work computer behind a firewall from home port forwarding not possible tkmsr Linux - Server 3 05-05-2010 12:20 PM
Unable to get X11 port forwarding to work in SSH Windowns Solaris / OpenSolaris 19 09-28-2006 05:52 AM
Using SSH port forwarding reports success but seems not to work. karlmdv Linux - Networking 2 02-02-2006 12:32 AM
X forwarding via SSH bd1308 Linux - Software 4 08-30-2005 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 12:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration