Re: Still Stuck on the Most FAQ
Re: Still Stuck on the Most FAQ
- Subject: Re: Still Stuck on the Most FAQ
- From: Rich Cook <email@hidden>
- Date: Thu, 19 Feb 2004 14:03:18 -0800
On Feb 19, 2004, at 1:06 PM, R Peter DeLong wrote:
I have given up on using SSH. I suspect one problem is that xauth and
xdm
are incapable of handling X servers like my laptop whose IP addresses
and
names keep changing, although see my next comment.
That is definitely NOT the problem. The IP addresses of both hosts are
known when you connect, or you couldn't connect in the first place.
There is no static information about your computer which is used at
connect time.
I have edited my /etc/hosts file on my powerbook to include flagfish
and
its stable IP address, but I am not able to even get old-fashioned X
login
to work right. Even then, I get "connection refused". So, I have
resigned
myself for the time being to setting DISPLAY manually on the host, and
using xhost + on my powerbook. At least that works!
VERY EVIL. With that setup, *anybody* on the remote machine can see
your every keystroke on your powerbook (while the X server has focus)
with a pretty simple C program. Instead, you should use xauth or ssh
-X.
First, check if you have X11Forwarding on the remote host turned off.
Look in /etc/ssh/sshd_config on the remote host for a line that says
X11Forwarding No
or
X11Forwarding Yes
If it is "Yes," you're ok. If not, your sysadmin or somebody with root
has to turn it on (and restart the sshd process).
Once this is on, if you still have no DISPLAY, then since your default
shell on the remote host is csh, you should try the following on the
remote host:
mkdir loginfiles.tmp
mv .cshrc* .login* loginfiles.tmp
Then logout and login again using ssh -X. You should have DISPLAY set.
This really shouldn't be this hard! :-)
I am still curious why the xterm that comes up by double-clicking on
X11.app has no environment variables set. Xterms that I initiate from
the
terminal are just fine. What file do I need to edit to fix that?
.xinitrc?
.cshrc for /bin/csh, or .login. .xinitrc is read when you run the X
server "by hand," e.g., when using Apple's X11 server or running the
"startx" process.
- Pete
P.S. Thanks to those who have tried to help!
Rich Cook
<email@hidden> To: Dominic Dunlop
<email@hidden>
cc: R Peter DeLong
<email@hidden>, email@hidden,
02/19/2004 01:57
email@hidden
PM Subject: Re: Still
Stuck on the Most FAQ
You know, I ran a test and find I am having a similar problem when
logging into remote machines and depending on -X to set my DISPLAY.
DISPLAY is not getting set. I tried removing my .bashrc and .profile
files on the remote machine, and I get no DISPLAY set. Weird. I have
solved the problem with xauth, ifconfig, cut, and grep, :-) but it
would be nice if it worked as it is supposed to.
On Feb 19, 2004, at 1:48 AM, Dominic Dunlop wrote:
Sorry for mot getting back to you yesterday. It's mainly because I
don't have much to add.
On 17 Feb 2004, at 20:35, R Peter DeLong wrote:
On my laptop, I have DISPLAY=:0.0. I assume this is shorthand, and
is okay?
Yes.
I am using the default (bash) on my laptop, even though on flagfish
my default shell is csh.
I have no problems with environment variables in terminal (all are
appropriately set).
Fine.
On the xterm that comes up with X11.app, no environment variables are
set.
As I said last time, this is odd, and you should investigate. But it
may not have anything to do with the failure to forward.
Here are the results of ssh -v. I have high hopes they will help!
...
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: channel 0: request pty-req
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: channel 0: request x11-req
debug1: channel 0: request shell
debug1: channel 0: open confirm rwindow 0 rmax 32768
Last login: Mon Feb 16 16:06:55 2004 from pcp171792pcs.ss
For what it's worth, I was seeing just this apparently successful
negotiation of forwarding when the /etc/ssh_config on the remote
system was set up not to allow forwarding, and it didn't change when I
corrected the configuration problem and got things working. Even the
highest levels of verbosity (-vvv) didn't show anything amiss. So,
whatever's wrong, I fear the logging information doesn't help.
Neither, in my experience, does Mac OS X's /private/var/log/system.log
on the remote system. Maybe Solaris' log is more helpful, so it's
worth checking.
--
Dominic Dunlop
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback:
http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.
--
Richard Cook
Lawrence Livermore National Laboratory
Bldg-451 Rm-2043, Mail Stop L-561
7000 East Avenue, Livermore, CA, 94550, USA
phone (925) 423-9605 (work) fax (925) 423-8704
---
Information Management & Graphics Grp., Services & Development Div.,
Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
--
Richard Cook
Lawrence Livermore National Laboratory
Bldg-451 Rm-2043, Mail Stop L-561
7000 East Avenue, Livermore, CA, 94550, USA
phone (925) 423-9605 (work) fax (925) 423-8704
---
Information Management & Graphics Grp., Services & Development Div.,
Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.