Re: ssh -X and AppleX11
Re: ssh -X and AppleX11
- Subject: Re: ssh -X and AppleX11
- From: Eben <email@hidden>
- Date: Sat, 11 Jan 2003 20:52:54 -0500
Apple's X11 starts with -xauth, an authentication scheme that isn't
required with ssh connections.
XDarwin starts with -xauth also, but it allows one to set permissions
of 400 on ~/.Xauthority, so that it can start without -xauth.
Two ways to get ssh X11 forwarding from Apple's X11 xterm:
1.
[mac:~] me% ssh -X -v -l me remote.example.com
2.
Uncomment 'Host *' and 'ForwardX11 yes' systemwide in
/private/etc/ssh_config or by user in ~/.ssh/config.
[mac:~] me% ssh -v -l me remote.example.com
Two ways to get ssh X11 forwarding from an Apple Terminal:
1.
[mac:~] me% defaults write com.apple.x11 no_auth true
[mac:~] me% defaults write com.apple.x11 nolisten_tcp false
<start Apple's X11>
[mac:~] me% env DISPLAY=:0.0 ssh -X -v -l me remote.example.com
2.
Uncomment 'Host *' and 'ForwardX11 yes' systemwide in
/private/etc/ssh_config or by user in ~/.ssh/config.
[mac:~] me% defaults write com.apple.x11 no_auth true
[mac:~] me% defaults write com.apple.x11 nolisten_tcp false
<start Apple's X11>
[mac:~] me% env DISPLAY=:0.0 ssh -v -l me remote.example.com
At 22:02 -0800 1/10/03, email@hidden wrote:
Date: Fri, 10 Jan 2003 16:28:18 -0800
Subject: ssh -X and AppleX11
From: Eric Salathe <email@hidden>
To: email@hidden
I'm just coming in here, and so this may have already been addressed
(list archive just started I see).
I use ssh -X from Terminal to connect to a Dec Alpha. I and can open a
window on the Mac in OroborOSX (doesn't matter if I launch Oroborosx
before or after sshing to the Dec). With Apple's X11, I get an error on
the dec:
Xlib: connection to "localhost:11.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Error: Can't open display: localhost:11.0
If I simply quit X11 and launch oroborosx or Xdarwin, I have no problem
opening a window.
Richard Cook suggested, from the SciTech list, that OrborOSX handles
xauth wrong and that I should reset my .Xauthority file by removing and
then, w/ X11 running, entering 'xauth generate :0 .' That doesn't do it
for me. Besides, xauth has no business here since I'm using ssh. Nor do
I expect to mess w/ xauth to get basic functionality. Both Xdarwin and
OroborOSX behave as one would expect.
I can remove .Xauthority altogether and run xhost +localhost, but X11
reinstates .Xauthority, so fails on next start.
Is anyone able to get normal ssh -X behavior or is this a peculiarity
of the way the Decs are set up here?
--
Eric Salathe
Climate Impacts Group <email@hidden>
University of Washington
<http://www.atmos.washington.edu/~salathe>
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.