LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2007, 10:22 AM   #16
fdmtester
LQ Newbie
 
Registered: Jul 2007
Posts: 1

Rep: Reputation: 0
Thank You..


Just wanted to say thank you. I spent a week trying to figure out what you did. I did the same thin. I edit all my /etc/hosts tables and in all of them I had my 127.0.0.1 localhost.localdomain localhost line at the end. When I moved this line to the top everything worked. So simple yet to hard... This should be a song .

Thanks once again

fdmtester

Quote:
Originally Posted by BigNate
Just because I hate running a search and finding a user who had a similar problem, but they never posted back when they finially got it working I give you...

...I finally got some help from some folks on the ssh mailing list.

long befor I used ssh I had to manually configure my ip addresses when I set up my network b/c I couldn't get RH to accept the DHCP addressing. And when I did that I used the GUI tool and had deleted the entry localhost thinking it was the address for the eth0...it isn't, it is the address for the loopback interface.

The lo is not used during ssh because no traffic is being redirected from the server.

During X11 fwd'ng the lo is used to redirect the traffic from the server side to the client. Hence the reason I could ssh into the box but could not get X to be redireceted (kind of a simplification but)
Therefore:
$su
$vim /etc/hosts

edit first line to reflect lo address. The syntax is different than the other addresses:
127.0.0.1 localhost

Make sure you let the other addresses alone.
see: man hosts for further info

And now it works. I have no real need to do this it was a fun diversion and quite rewarding to get working. If you have more than one computer then you should give it a go, it is cool sitting on the couch and manipulating files on a remote computer!
 
Old 06-21-2011, 01:39 AM   #17
Hategrin
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
I've been like "WTF!" for the past 30 minutes, then someone says
"Of course you have to have an xserver running on the *nix machine"
=D

My case is slightly different... using FreeBSD (because i prefer BSD to GPL licensing)
so for googlers......
/*

freebsd windows7 windows xming putty ssh
can't open display

*/

So far the main thing I've changed is in the sshd.conf file un-commenting 3 lines and maybe making it say yes instead of no in a few places.
/etc/ssh/sshd_config
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
#PrintMotd yes

Whelp after this pkg_add -r gnome2 finishes i guess i'll be back.
Until then....

Last edited by Hategrin; 06-21-2011 at 01:41 AM.
 
  


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
X11 Forwarding...insecure? Vgui Linux - Security 4 11-24-2005 05:41 PM
X11 forwarding paul_mat Linux - Newbie 3 12-12-2004 06:30 PM
X11 Forwarding Issue gauge73 Linux - Networking 1 11-10-2004 09:20 AM
X11 forwarding JanDeMan Mandriva 1 04-17-2004 09:02 PM
Need Help with X11 forwarding phatboyz Linux - General 3 04-16-2004 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:17 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