LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 08: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, 08:16 PM   #17
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Could you modify it, so it reads
Code:
127.0.0.1   localhost           localhost.localdomain
[server address]    [server name]
 
Old 07-09-2016, 08: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, 09:00 PM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,568

Rep: Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865
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 09:02 PM.
 
Old 07-09-2016, 09:03 PM   #20
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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, 09: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, 09: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, 04:39 AM   #23
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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, 05:35 AM   #24
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:23 AM.

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