How do I keep an X session alive when my VPN/ssh disconnects so I can reconnect later?


 
Thread Tools Search this Thread
Operating Systems Solaris How do I keep an X session alive when my VPN/ssh disconnects so I can reconnect later?
# 1  
Old 01-08-2019
How do I keep an X session alive when my VPN/ssh disconnects so I can reconnect later?

Hi,


Sorry if this question has been asked before, however, I have tried looking in the forum (and google in general) and I haven't found an answer, so I thought I'd ask here.



I am trying to use a GUI application in Solaris 10. Normally I connect with a VPN then SSH and use Xming to launch my application.
The problem is that whenever my VPN disconnects, the software closes and interrupts the things it was doing.
For command line applications I use "screen" to keep a session opened when the VPN connection fails, so there is no problem, but I haven't found anything equivalent for an X session.
I even tried forwarding the X session to "screen" (export DISPLAY=localhost:N.0 ) but either I'm doing something wrong or this doesn't work...

I know using Citrix will solve this with proper configuration, unfortunately for the time being I can't use it on this server.



is there any software equivalent to "screen" for X sessions that I can use in Solaris 10? if not, Is there any alternative way of doing this?


Thanks!
# 2  
Old 01-08-2019
VNC can reconnect like this but isn't freestanding, you'll need an X11 environment on the server instead. So the server hosts the program and the graphics alike(physical display not strictly required IIRC), and VNC is your screen-alike.
# 3  
Old 01-08-2019
Run your program (on the remote) as a detached process, i.e. a script that uses a here document already created by screen (you programmatically modify details for each run)?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. SCO

Telnet session disconnects abruptly

I have inherited and SCO OpenServer Release 6 server. The clients connect using telnet to get to a proprietary database application for Service tickets. The issue I am currently having is that the connection just stops abruptly and you can see "telnet session terminated" on the terminal emulation... (22 Replies)
Discussion started by: sean6605
22 Replies

2. IP Networking

VPN ssh access over RDP port?

Guys, Can I use an open RDP port to gain ssh access to my Linux server running the other side of our firewall? I work from home on the odd occasion, we only have RDP port 3389 available once logged into the VPN. I would rather ssh into my workstation without the need for a desktop display. ... (3 Replies)
Discussion started by: general_lee
3 Replies

3. UNIX for Advanced & Expert Users

Need Password-Less ssh with RSA-VPN

We have RSA SecureID softtoken key generator on my Windows machine. It generates new keys every 1 minute. Any HPUX server (be it ServerD or ServerP) requires my ID and the randomly generated RSA SecureID softtoken key from my Windows to login. I login to ServerD. Then I run a script... (0 Replies)
Discussion started by: mohtashims
0 Replies

4. UNIX for Dummies Questions & Answers

SSH session

I ran a job using SSH and then used screen command followed by space bar. Then I ran the job. But after some hours, the internet connection was lost.This had happened to me before. I used to run the whole job again. Today I came across the fact that I could restart the jobs without having to do it... (2 Replies)
Discussion started by: nellierd
2 Replies

5. HP-UX

ssh session getting hung (smilar to hpux telnet session is getting hung after about 15 minutes)

Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies

6. Ubuntu

SSH droping connections over a VPN

Hello friends, I'm connection to an external network using a VPN configured over an Ubuntu. The problem is that whenever I get connected to a remote computer using my VPN as router, after a while, sometimes short, sometimes long, sometimes immediately, the connection gets lost and I've to... (1 Reply)
Discussion started by: lzcool
1 Replies

7. Shell Programming and Scripting

could not send commands SSH session with Net::SSH::Expect

I am using Net::SSH::Expect to connect to the device(iLO) with SSH. After the $ssh->login() I'm able to view the prompt, but not able to send any coommands. With the putty I can connect to the device and execute the commands without any issues. Here is the sample script my $ssh =... (0 Replies)
Discussion started by: hansini
0 Replies

8. Solaris

How to reconnect to a disconnected remote ssh session

hi all How to reconnect to a disconnected remote ssh session on solaris 10 is there any way (4 Replies)
Discussion started by: h@foorsa.biz
4 Replies

9. UNIX for Dummies Questions & Answers

Keep alive packet for control session in ftp data transfer

I'm new to UNIX. We are using SunOS5.9. In order to maintain the control session active during large file tranfers in ftp, i like to send keep alive packets for every 10 seconds.I like to know the steps to be done to achieve this. Please help me guys.Thanks in advance. (0 Replies)
Discussion started by: rpr
0 Replies
Login or Register to Ask a Question