On 16/01/2020 12.29, Stefan Baur wrote:
Am 16.01.20 um 10:48 schrieb Tristan Miller:
Greetings.
On 15/01/2020 19.13, Alexanderstr Miete wrote:
Is there a simple command line command to terminate the X2Go session while being on the remote server? So, the aim is to be able to terminate the session via the command line on the server, not on the client.
On the server, you can run x2golistsessions to get a list of active sessions. Then run x2goterminate-session, passing as the argument the ID of the session you want to terminate.
When run from inside the session that you want to terminate, there is no need to dig for the session ID first. Just run x2goterminate-session without any parameters, and *poof*, your session is gone.
Sure, but it wasn't clear to me whether the OP was asking about being physically present on the remote server, or connected to it only via an X2Go client. (He asks only if there is a command to "terminate the X2Go session while being on the remote server".)
Maybe he has the same use case as me: at work I often make an X2Go connection from my office computer to my home computer. Sometimes I forget to terminate the connection before I come home from work, so I need to do it using x2goterminate-session on the "remote" server once I get home.
Regards, Tristan
Tristan Miller