LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-09-2016, 09:13 PM   #16
asun
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by keefaz View Post
I don't understand the [server address] on 127.0.0.1 second line, is there an IP here?
Yes, it's the IP address of the server.
 
Old 07-09-2016, 09:16 PM   #17
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Could you modify it, so it reads
Code:
127.0.0.1   localhost           localhost.localdomain
[server address]    [server name]
 
Old 07-09-2016, 09:38 PM   #18
asun
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
Could you modify it, so it reads
Code:
127.0.0.1   localhost           localhost.localdomain
[server address]    [server name]
I modified it as you've written. Reconnecting with ssh and trying X11 forwarding still gives me the same problem.

Should I do something else after editing the file?
 
Old 07-09-2016, 10:00 PM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,930

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
is xorg-x11-xauth installed? Looks like it.

if you manually add DISPLAY=localhost:10.0 does it work?

Last edited by michaelk; 07-09-2016 at 10:02 PM.
 
Old 07-09-2016, 10:03 PM   #20
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Quote:
Originally Posted by asun View Post
I modified it as you've written. Reconnecting with ssh and trying X11 forwarding still gives me the same problem.

Should I do something else after editing the file?
No just save it, but the edit corrected a configuration error

Now maybe time to check X11/sshd errors in /var/log
 
Old 07-09-2016, 10:11 PM   #21
asun
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
is xorg-x11-xauth installed? Looks like it.

if you manually add DISPLAY=localhost:10.0 does it work?
Yes, xorg-x11-xauth is installed and up to date.

If I manually set DISPLAY I get the following error:

Code:
*WARNING* X Window Display Initialization failure
*WARNING* (DISPLAY "localhost:10.0")
 
Old 07-09-2016, 10:17 PM   #22
asun
LQ Newbie
 
Registered: Mar 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by keefaz View Post
No just save it, but the edit corrected a configuration error

Now maybe time to check X11/sshd errors in /var/log
Sorry, how would I go about checking the errors?
 
Old 07-10-2016, 05:39 AM   #23
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,600

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Manually setting the DISPLAY environment variable is incorrect. The values are dynamically created by sshd when the connection is established - and overriding these will cause problems with any secondary connection.
 
Old 07-10-2016, 06:35 AM   #24
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Quote:
Originally Posted by asun View Post
Sorry, how would I go about checking the errors?
I don't know where centOS logs things, but I would try to check usuals logs:
/var/log/messages
/var/log/syslog

maybe /var/log/secure too

You can use ' tail <logfile> ' to check log file last lines
Or ' grep sshd <logfile> ', ' grep X11 <logfile> '
 
  


Reply


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
[SOLVED] Centos 7 - X11 forwarding bioshock Linux - Newbie 7 06-03-2015 02:46 PM
X11 Forwarding not working properly OpenSUSE 13.1 jborck Linux - General 1 06-20-2014 04:11 PM
IP Forwarding not working in CentOS 5 varunb Linux - Newbie 7 04-17-2012 04:05 AM
IP Forwarding not working in CentOS 5 tomwerner Linux - Networking 9 05-19-2008 12:47 PM
X11 Forwarding working with Cygwin, Failing under Linux AnSyn Linux - Networking 10 02-28-2007 01:44 PM


All times are GMT -5. The time now is 12:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration