Need help using xmove over ssh

From: Ken Stailey (kstailey@yahoo.com)
Date: 04/22/03


From: kstailey@yahoo.com (Ken Stailey)
Date: 22 Apr 2003 11:18:59 -0700

If you don't know what xmove is please read:

http://www.lbl.gov/ITSD/CIS/UNIX/Software/modules/xmove.html

http://packages.debian.org/unstable/x11/xmove.html

I am trying to use xmove over ssh. If I start xmove on a system with
a local display server:

$ xmove &
Implementing MIT-MAGIC-COOKIE-1 user authentication
XMove 2.0 ready.

and start a client on it:

$ xlogo -display nearhost.near.net:1 &

it comes up. Now the xmove is connected to the local X server via
TCP.

$ lsof -p 13678 | grep 5u
xmove 13678 kstailey 5u IPv4 0xd0efe200 0t0 TCP
nearhost.near.net:4742->nearhost.near.net:x11 (ESTABLISHED)

and the xlogo client is connected to the xmove via TCP

xmove 13678 kstailey 4u IPv4 0xd0efe680 0t0 TCP
nearhost.near.net:6001->nearhost.near.net:4740 (ESTABLISHED)

xlogo 13686 kstailey 3u IPv4 0xd0f01800 0t0 TCP
nearhost.near.net:4740->nearhost.near.net:6001 (ESTABLISHED)

If I ssh in I can display the clients connected to the xmove on
nearhost:

$ xmovectrl nearhost.near.net:1 -list
1 xlogo nearhost:0

But this:

$ xmovectrl nearhost.near.net:1 -moveall localhost:10.0

hangs xmove leaving it spinning the CPU doing endless reads off a
closed socket from it to ssh port 6010. I assume ssh closed the
socket when authetication failed.

If I bring down xmove and xlogo and ssh in and try to start xmove and
xlogo on so the default display server xmove is using is the ssh port
6010 it goes:

$ xlogo -display nearhost.near.net:1 &
[2] 13645
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
xmove is not authorized to connect to server localhost:10.0.
Xlib: connection to "nearhost.near.net:1.0" refused by server
Xlib: Client is not authorized to connect to Server
X11 connection rejected because of wrong authentication.
Error: Can't open display: nearhost.near.net:1

I think that if I knew what cookie to copy between what server I could
get it to work like this. Can anyone suggest what xauth commands to
use?

Thanks!



Relevant Pages

  • Re: xmove + ssh failure
    ... > I'm trying to use ssh + xmove on a debian server to launch clients to an ... but xmove seems to error on me: ... Client is not authorized to connect to Server ... ssh -v will show more. ...
    (Debian-User)
  • xmove + xauth hell
    ... xmove, the screen for x app, seems to really hate the ssh "it just works" ... system through ssh tunneling. ... fails to xauth itself properly. ... and import it with a different display name into my .Xauthority. ...
    (Debian-User)
  • xmove and ssh
    ... couple of days ago I read about xmove and thought it might be great to ... ssh gruffi ... Error: Can't open display: localhost:1 ... I googled but what I found fits well under the subject "xauth + ...
    (comp.windows.x)
  • xmove + ssh failure
    ... When you log into a server with SSH, your .Xauthority file gets updated with a cookie (generated by SSH? ... Your DISPLAY variable, on the other hand, belongs to 'localhost': ... For most programs this is fine - but for Xmove, ...
    (Debian-User)
  • Re: move an X window to another session
    ... I need to be able to SSH into this box, and bring up this app in my ... say,:0.0 - I just want to be able to 'move' it to my SSH session. ... xmove is what you need AFAICT. ...
    (comp.os.linux.misc)