 |
 |
X11 Forwarding Problems (PANTHER)
|
 |
|
 |
|
Mac Enthusiast
Join Date: Mar 2002
Location: north america
Status:
Offline
|
|
Greetings,
I am having some problems that I can't seem ot fix. Well actually I thought I had them corrected until it seems something has changed again (maybe install X11 SDK for Fink).
Hell I dunno, I am pretty lost at this point. Here is the problem:
I have ForwardX11 set to yes in ssh_config, however when I connect to a remote machine I get this error:
Warning: No xauth data; using fake authentication data for X11 forwarding.
I get this error message from both OS X terminal and xterm. I can run X11 apps that reside on my machine, but not on remote machines. I do have an .Xauthority file in my home directory as well.
As I stated, I thought I had this worked out yesterday, but this morning it is back. Anyone have any comments on this??
Thanks
(Last edited by jhunt5247; Oct 28, 2003 at 09:00 AM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Mar 2002
Location: north america
Status:
Offline
|
|
If anyone can do X11 Forwarding in Panther with X11 supplied version, can you please post your /etc/ssh_config and .profile/.bashrc files?
Trying to track down what the problem is. Not too much information on the subject.
|
|
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Apr 2001
Location: portland, or, us
Status:
Offline
|
|
here is the setup that i got to work..
modify the sshd_config file on the remote system (eg.: /usr/local/etc/sshd_conf):
X11Forwarding yes
modify the ssh_config file on your local (mac) system (/etc/ssh_conf):
ForwardX11 yes
in apples X11 application, get preferences, and make sure that BOTH options under the security tab are checked. if you dont have the "Authenticate connections" option checked you are going to get the "using fake authentication data for X11 forwarding" error.
start up a ssh-x tunnel on your local (mac) machine:
>ssh -N -X -L6000:some-remote-machine:6000 your-local-user-name@localhost
i do this in a separate tab window under iTerm so i can kill the x-tunnel whenever i want. make sure to change "some-remote-machine" to the machine that you want display on your local (mac) machine. and change "your-local-user-name" to a name on your local (mac) machine. the "@localhost" is necessary.
if you are starting this all off from the apple X11 terminal then you should have your display automatically set. you can check it:
>env | grep DISPLAY
else, you need to set it before ssh'ing to the other system.
>setenv DISPLAY :0.0
then ssh to the remote machine normally (from the window that you have set your DISPLAY in). you should not get the authentication error, and you should see that your display has been changed to something like this:
DISPLAY=localhost:11.0
you should now be able to run something and have it display on your local (mac) X11.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Mar 2002
Location: north america
Status:
Offline
|
|
Originally posted by Mojo-ike:
here is the setup that i got to work..
Well all my settings were correct. I did find the problem though.
I noticed my .Xauthority file had my hostname as hostname.ip#.hostname.com -- a little explanation on this.
My internal DNS server, assigns DHCP leased machines the name ip#.hostname.com to all DHCP machines (about 100+ of them)
My machine is static, so it should not have been putting that extra ip#.hostname.com. I removed this ip# from my DNS server, and reboot my machine.
Started X11, cat .Xauthority, and it was set correctly. ssh into remote machine, no warning, X11 works fine.
Apparently Panther with this ".profile" statement in System Preferences/Sharing/Computer Name is new and is what caused this problem.
I am just thankful it is fixed, and I can easily understand why now.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|