start_forward_tunnel(local_host='127.0.0.1',
local_port=22022,
remote_host='127.0.0.1',
remote_port=22,
ssh_transport=None,
session_instance=None,
session_name=None,
logger=None)
| source code
|
Setup up a Paramiko/SSH port forwarding tunnel (like openssh -L
option).
The tunnel is used to transport X2Go graphics data through a proxy
application like nxproxy.
- Parameters:
local_host (int) - local starting point of the forwarding tunnel
local_port (int) - listen port of the local starting point
remote_host (str) - from the endpoint of the tunnel, connect to host
<remote_host>...
remote_port (int) - ... on port <remote_port>
ssh_transport (obj) - the Paramiko/SSH transport (i.e. the X2Go session's Paramiko/SSH
transport object)
session_instance (obj) - the X2GoSession instance that initiates this tunnel
session_name (str) - the session name of the X2Go session this port forwarding server
belongs to
logger (obj) - an X2GoLogger object
- Returns:
obj
- returns an X2GoFwServer instance
|