x2go - how to disconnect and reconnect client?
by taylorkh from LinuxQuestions.org on (#59HKN)
I have x2gserver installed from the Ubuntu repos on an Ubuntu Mate 20.04 machine. Very simple, it is up and running.
I installed the x2goclient on my CentOS 7 with Mate workstation. Again, very simple. I created a session to the server - very simple, using my username on the server and [X] Try auto login (via SSH Agent or default SSHkey) as I have installed my key on the server and can open an ssh session without entering a password. And it works!
I have started some work on the server machine (just running Firefox as a test) and I would like to disconnect and leave Firefox running so I might return to it later. I have done this for years with various flavors of vnc. The tutorial at https://bytexd.com/x2go-ubuntu/tells meQuote:
My question boils down to How do I Log off??? If I "Log Out" from the Mate panel icon (Log Out..., Suspend, Hibernate, Shut Down...) it will of course close any programs I have running.
If I click the X and close the window with my remote session as launched by the x2goclient that will leave Firefox running and take me back to the x2goclient window. SOMETIMES I can reconnect and sometimes not. I got to a point where I had to delete my session configuration and recreate it before I could connect again. It has of course let me disconnect and reconnect several times as I am writing this post :rolleyes:
I have a session configured to the production machine to which I wish to connect. I had it running overnight and this morning... I got back in once and never again. I finally went back to x11vnc until I got x2go sorted out. x11vnc will do the job but it is very high in CPU usage.
I must be missing something or did something out of order. And to make things more confusing... I disabled the x2goserver on the production box when I went back to x11vnc. However, I can still connect with x2go(?) I can disconnect and reconnect - until I selected Display 1 as the screen resolution. This brings me to a full screen of the remote machine - which is nice - but absolutely no way to disconnect gracefully that I can find.
Any advice would be appreciated. If someone can show me how to configure TigerVNC on Ubuntu Mate 20.04 that would be appreciated even more. I use it on several other distros but have yet to get it to work on Ubuntu Mate 20.04.
TIA,
Ken
p.s. As I was reviewing my post I decided to simply [X] close the x2goclient window. This in fact disconnected me from the production machine and I can reconnect. However, I have done this before with bad results - cannot ever reconnect.


I installed the x2goclient on my CentOS 7 with Mate workstation. Again, very simple. I created a session to the server - very simple, using my username on the server and [X] Try auto login (via SSH Agent or default SSHkey) as I have installed my key on the server and can open an ssh session without entering a password. And it works!
I have started some work on the server machine (just running Firefox as a test) and I would like to disconnect and leave Firefox running so I might return to it later. I have done this for years with various flavors of vnc. The tutorial at https://bytexd.com/x2go-ubuntu/tells meQuote:
How to End the Remote Session? There are two ways you can end a remote session: Log off Click the button marked with a circle and a small line (similar to the standby/power button) at the bottom-right corner of the main X2Go screen. The first method is quick and clean but there's a catch! It leaves applications like the session management software running. The second method closes everything (even forcefully) if it doesn't close directly. In either case, I recommend saving everything before exiting. |
If I click the X and close the window with my remote session as launched by the x2goclient that will leave Firefox running and take me back to the x2goclient window. SOMETIMES I can reconnect and sometimes not. I got to a point where I had to delete my session configuration and recreate it before I could connect again. It has of course let me disconnect and reconnect several times as I am writing this post :rolleyes:
I have a session configured to the production machine to which I wish to connect. I had it running overnight and this morning... I got back in once and never again. I finally went back to x11vnc until I got x2go sorted out. x11vnc will do the job but it is very high in CPU usage.
I must be missing something or did something out of order. And to make things more confusing... I disabled the x2goserver on the production box when I went back to x11vnc. However, I can still connect with x2go(?) I can disconnect and reconnect - until I selected Display 1 as the screen resolution. This brings me to a full screen of the remote machine - which is nice - but absolutely no way to disconnect gracefully that I can find.
Any advice would be appreciated. If someone can show me how to configure TigerVNC on Ubuntu Mate 20.04 that would be appreciated even more. I use it on several other distros but have yet to get it to work on Ubuntu Mate 20.04.
TIA,
Ken
p.s. As I was reviewing my post I decided to simply [X] close the x2goclient window. This in fact disconnected me from the production machine and I can reconnect. However, I have done this before with bad results - cannot ever reconnect.