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,
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 (instance ) - the Paramiko/SSH transport (i.e. the X2go sessions Paramiko/SSH
transport object)
session_instance (instance ) - the X2goSession instance that initiates this tunnel
logger (instance ) - an X2goLogger object
- Returns:
instance
- returns an X2goFwServer instance
|