--- Andrew RAY
With this solution. I tried ssh -x user@localhost and then ran the app but it failed to connect to Xserver. Just as it did when I tried the same operation with ssh.
With this one, the x has to be upper case, and you should specify the command you are trying to execute as part of the single continuous line. Let's suppose you were trying to run Yast2 as the root user in and xterm, while you were logged in as the user fred.
The full path to Yast2 is actually:
/sbin/yast2
So, in your xterm you would type as a single command:
ssh -X root@localhost /sbin/yast2
You will then be asked to provide a password, which is that of the root user.
After all that, the program, yast2 would start up.
In the command line simply replace /sbin/yast2 with the full path to the program you want to run.
(If you don't know the full path, you can find it out by typing:
whereis yast2
whereis myprog
I'd be more inclined to do: ssh -X root@localhost $(which app) That way, the string of the interpolated subshell will evaluate to the program specified -- moreover, this will only work with the program in $PATH. -- Thomas Adam ===== Thomas Adam "The Linux Weekend Mechanic" -- www.linuxgazette.com ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk