[PLUG] ssh -X me at that

Martin A. Brown martin at linux-ip.net
Mon Jul 25 08:25:54 UTC 2011


Hello there,

 : With my latest update (to Ubuntu 11.04), I changed to Evolution 
 : from Thunderbird.  Hopefully this'll end up being a good idea.  
 : One of the things that indicates that it is is that I can now 
 : remote shell into my work machine from my laptop and successfully 
 : run Evolution.  (I used to be able to do this with Thunderbird 
 : but it broke over a year ago).
 : 
 : However, when I do this and run an X program from the command 
 : line, on the route back to my local shell I have to type 'exit' 
 : at the remote shell, but then I get hung in some sort of limbo, 
 : and also have to do a control-C to get my command line back.
 : 
 : Is there an easy fix?  One that's easier than just hitting 
 : control-C every time?

The answer is yes.  There are quite a few command-line options to 
ssh, so I can understand why you might not know which to choose.  
Here's my typical invocation of an X application that I run on a 
different machine.

  ssh -f -C -Y -c blowfish -l "${USER}" "${REMOTE_HOST}" "proggie"

    -f          background after pass{phrase,word}
    -C          compression (probably not necessary on a LAN)
    -c <cipher> choose a cipher
    -Y          use X-forwarding
    -l <user>   alternate username

Good luck,

-Martin

-- 
Martin A. Brown
http://linux-ip.net/



More information about the PLUG mailing list