|
|
__init__(self,
profile_name='UNKNOWN',
add_to_known_hosts=False,
known_hosts=None,
terminal_backend=<class 'x2go.backends.terminal._stdout.X2goTerminalSessionSTDO...,
info_backend=<class 'x2go.backends.info._stdout.X2goServerSessionInfoSTDOUT'>,
list_backend=<class 'x2go.backends.info._stdout.X2goServerSessionListSTDOUT'>,
proxy_backend=<class 'x2go.backends.proxy._nx3.X2goProxyNX3'>,
client_rootdir='/home/buildd/.x2goclient',
sessions_rootdir='/home/buildd/.x2go',
ssh_rootdir='/home/buildd/.ssh',
logger=None,
loglevel=56,
*args,
**kwargs)
Initialize an X2go session. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
remote_username(self)
Returns the control session's remote username. |
source code
|
|
|
|
|
|
|
check_host(self,
hostname,
port=22)
Wraps around a Paramiko/SSH host key check. |
source code
|
|
|
|
connect(self,
hostname,
port=22,
username='',
password='',
pkey=None,
use_sshproxy=False,
sshproxy_host='',
sshproxy_user='',
sshproxy_password='',
sshproxy_key_filename='',
sshproxy_tunnel='',
key_filename=None,
timeout=None,
allow_agent=False,
look_for_keys=False,
session_instance=None,
add_to_known_hosts=False,
force_password_auth=False)
Connect to an X2go server and authenticate to it. |
source code
|
|
|
|
dissociate(self,
terminal_session)
STILL UNDOCUMENTED |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
resume(self,
session_name=None,
session_instance=None,
**kwargs)
Resume a running/suspended X2go session. |
source code
|
|
bool
|
share_desktop(self,
desktop=None,
user=None,
display=None,
share_mode=0,
**kwargs)
Share another already running desktop session. |
source code
|
|
list
|
list_desktops(self,
raw=False,
maxwait=20)
List all desktop-like sessions of current user (or of users that have
granted desktop sharing) on the connected server. |
source code
|
|
X2goServerSessionList instance or str
|
|
|
|
clean_sessions(self,
destroy_terminals=True)
Find X2go terminals that have previously been started by the
connected user on the remote X2go server and terminate them. |
source code
|
|
bool
|
is_connected(self)
Returns True if this X2go session is connected to the
remote server (that is if it has a valid Paramiko Transport object). |
source code
|
|
bool
|
is_running(self,
session_name)
Returns True if the given X2go session is in running
state, False else. |
source code
|
|
bool
|
is_suspended(self,
session_name)
Returns True if the given X2go session is in suspended
state, False else. |
source code
|
|
bool
|
has_terminated(self,
session_name)
Returns True if this X2go session is not in the session
list on the connected server, False else. |
source code
|
|
bool
|
suspend(self,
session_name)
Suspend either this or another available X2go session on the
connected server. |
source code
|
|
bool
|
terminate(self,
session_name,
destroy_terminals=True)
Terminate either this or another available X2go session on the
connected server. |
source code
|
|
|
Inherited from paramiko.SSHClient:
close,
exec_command,
get_host_keys,
get_transport,
invoke_shell,
load_host_keys,
load_system_host_keys,
open_sftp,
save_host_keys,
set_log_channel,
set_missing_host_key_policy
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|