In that case what Rainer Duffner said is your best bet. Start a VNC server running on the REMOTE machine (i.e. vncserver :1 -depth 24) and tunnel that port from your local server to the remote machine. Then use vncviewer to access the remote X desktop. This way your Java app runs in a persistant environment. You can leave your app running and reconnect to it whenever you want. Think of it as the "screen" program for X Windows. To forward the port you'd change your ssh login command to something like ssh -L 5901:localhost:5901 <destination hostname> That's if you start a vncserver as desktop :1. The port number would be 5902 if it was desktop :2 etc. The only problem is that now ANYONE can try to connect to that remote vncserver(!) session (unless firewalled). So you probably want to password it and/or add a firewall rule to stop all external connections to that port 5902. Blocking external connections to that port wont stop your SSH tunneled ones. :) Alternatively you can do some sort of SSH suspend or backgrounding operation but I haven't tried that myself. Cheers
-----Original Message----- From: Nick LeRoy [mailto:nick.leroy@linuxmail.org] Sent: Wednesday, 9 February 2005 11:00 a.m. To: suse-security@suse.com Subject: Re: [suse-security] Keep Remote App Running after ssh logout
On Tue February 8 2005 3:53 pm, Rainer Duffner wrote:
Andrew_Wrobel@PepBoys.com wrote:
I've trying different things to get around this problem without any luck.
I have a Java-based application running on a remote server, which I connect to via SSH.
After starting the application, it will die as soon as I logout. I've tried to nohup the java command. No dice.
If I'm understanding things correctly, the basic problem is that the ssh session creates a "tunnel" through which your X apps (including your graphical Java app) is displayed. When the ssh session goes away, so does the tunnel, and, poof, your remote X session as well.
Sorry.
-Nick
-- <<< Why, oh, why, didn't I take the blue pill? >>> /`-_ Nick LeRoy The Condor Project { }/ http://www.cs.wisc.edu/~nleroy http://www.cs.wisc.edu/condor \ / nick.leroy@linuxmail.org The University of Wisconsin |_*_| 608-265-5761 Department of Computer Sciences
-- Check the headers for your unsubscription address For additional commands, e-mail: suse-security-help@suse.com Security-related bug reports go to security@suse.de, not here