[X2Go-Dev] Terminate X2Go Session from inside Server

Stefan Baur X2Go-ML-1 at baur-itcs.de
Fri Jan 17 15:46:15 CET 2020


Am 16.01.20 um 15:19 schrieb Tristan Miller:

>>>> 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".)

Still worth pointing out that there are cases where you don't need to
jump through multiple hoops.


> 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.

That sounds wrong.  You can remote-suspend a session between a client A
and a server from another client B you're logged on to, and resume it
from there.  No need to terminate the session.

-Stefan

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20200117/8ff28a1e/attachment.sig>


More information about the x2go-dev mailing list