Scroll to navigation

x2gobroker-testagent(8) X2Go Session Broker x2gobroker-testagent(8)

NAME

x2gobroker-testagent - Session Broker for X2Go (Agent Test Utility)

SYNOPSIS


x2gobroker-testagent
[ options ]

DESCRIPTION

x2gobroker-testagent is a test utility for local/remote X2Go Session Broker Agents. The x2gobroker-testagent has to run as super-user root.

The x2gobroker-testagent tool is normally run on the machine that acts as the X2Go Session Broker.

The x2gobroker-testagent tries to connect to a local or remote X2Go Session Broker Agent. X2Go Broker Agents are co-installed on X2Go Server hosts and support the broker in controlling that X2Go Server.

The x2gobroker-testagent executes a test task on the broker agent. The broker agent tries to switch to the given user's context and runs the given task on behalf of that user.

COMMON OPTIONS

x2gobroker-testagent provides help on command line options:

Display a help with all available command line options and exit.

REQUIRED OPTIONS

You can either list the broker agent's tasks that are available for testing:

Render a list of available broker agent tasks. This list shows what can be tested. The capabilities of the remote agent and the broker server's test code are compared and displayed.

Or run a given task on behalf of an X2Go user on a local or remote broker agent:

Instruct the broker agent to switch to this user's context when running the given task on the local/remote host.
The task that shall be test-executed on the remote broker agent.

REMOTE BROKER OPTIONS

The default mode for calling the X2Go Session Broker Agent is "LOCAL". Alternatively, remote broker agents can be called via mode "SSH". For this, you additionally need to specify the below options:

Hostname to connect to via SSH for running remote broker agent test commands.
The TCP/IP port that the remote system's SSH daemon listens on (default: 22).

SUPPLIMENTARY OPTIONS

For some tasks, you have to provide additional parameters.

When connecting to a remote broker agent via SSH, add the broker agent machine's SSH host key to the list of known hosts (normally /var/lib/x2gobroker/.ssh/known_hosts).

This has to be done once per broker agent machine, that the X2Go Session Broker is supposed to connect to.

When testing the 'suspendsession' or the 'terminatesession' task, you have to additionally give a session ID to test those tasks on.
Use your own provided SSH public key when testing the 'addauthkey' and the 'delauthkey' tasks.

MISC OPTIONS

x2gobroker-testagent also accepts the following miscellaneous options:

Enable debugging code.
Specify an alternative configuration file name, default is: /etc/x2go/x2gobroker.conf.

FILES

/etc/x2go/x2gobroker.conf, /etc/x2go/broker/* (configuration files)

/etc/x2go/broker/defaults.conf (environment for X2Go Session Broker)

/var/log/x2gobroker/* (log files of X2Go Session Broker)

SEE ALSO

/usr/share/doc/x2gobroker

AUTHOR

This manual has been written for the X2Go project by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>.

Apr 2020 Version 0.0.4.x