On Mon, 28 Mar 2005 16:11:38 -0800, Mark Knecht <[EMAIL PROTECTED]> wrote:
> > Here's a little shell script I wrote to do this just now. It should work at > > least on Gentoo clients. Note that I had a problem when sshing to localhost > > that it would unset DISPLAY, but it worked when sshing to my server. YMMV > > Hi John, > Thanks for working on this. I set rXs up as a bash file, gave it > execute rights and fired it off, first against a local FC2 remote > machine and second against a distant Gentoo remote machine. In both > cases the script seems to fail looking for my password. > > I think this must be assuming the 'passwordless X session that Jeff > Smelser talked about yesterday? I'll have to go look for how to do > that. I presume that it's an sshd config option at the far end. That > scares me a bit as it would seem to open up the machine to who knows > what problems. I watch the logs on one of these boxes and I see all > sorts of kiddie scripts trying to hack into Windows boxes. I don't > want that sort of problem showing up at this time. > > Thanks, > Mark > Hi, OK, with the help of this fine little page: http://bumblebee.lcs.mit.edu/ssh2/ I set up keys on both machines so I can log into either Gandalf (a Gentoo box) or Dragonfly (an FC2 box) without using a password. Now the script does pretty much what I was seeing yesterday when I was attempting much of the same thing by hand: [EMAIL PROTECTED] mark]$ ./rXs Usage: ./rXs <hostname> [<session-program> [<Xserver>]] [EMAIL PROTECTED] mark]$ ./rXs dragonfly 0:0 1:1 Release Date: 18 December 2003 X Protocol Version 11, Revision 0, Release 6.7 Build Operating System: Linux 2.4.21-25.ELsmp i686 [ELF] Current Operating System: Linux Godzilla 2.6.10-2.1.ll.rhfc2.ccrma #1 Thu Dec 30 06:24:24 EST 2004 i686 Build Date: 02 December 2004 Build Host: porky.build.redhat.com Before reporting problems, check http://wiki.X.Org to make sure that you have the latest version. Module Loader present OS Kernel: Linux version 2.6.10-2.1.ll.rhfc2.ccrma ([EMAIL PROTECTED] ) (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 Thu Dec 30 06:24:24 ES T 2004 Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.2.log", Time: Mon Mar 28 16:42:03 2005 (==) Using config file: "/etc/X11/xorg.conf" Warning: No xauth data; using fake authentication data for X11 forwarding. AUDIT: Mon Mar 28 16:42:06 2005: 8438 Xorg: client 1 rejected from local host Auth name: MIT-MAGIC-COOKIE-1 ID: -1 Xlib: connection to "localhost:11.0" refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key (gnome-session:12193): Gtk-WARNING **: cannot open display: [EMAIL PROTECTED] mark]$ The X server is started locally. Alt-Ctrl-F8 gets me there, F7 gets me back again, but I get the same connection refused message. I'm not clear whether the localhost:11.0 is this machine (Godzilla) or whether it's Dragonfly. I hope it's this machine and this is a matter of just letting Dragonfly have access to the display. Can I assume that since it's 11:0 that is trying to get to display :2 on this machine? (Godzilla) Thanks, Mark -- [email protected] mailing list
