nbox.sub_utils.ssh
Creates a socket tunnel between users localhost to server called RSockServer (Reverse Socket Server) .
nbx tunnel 8000 --i "nbox-dev"
If you find yourself using this reach out to NimbleBox support.
Functions
- port -
Local port for terminal
- *apps_to_ports -
A tuple of values
buildport:localport
. For example,jupyter:8888
or2001:8002
- i -
The instance to connect to
the nbox way to SSH into your instance. Usage: nbx tunnel 8000 -i "nbox-dev"
Classes
- client_socket -
The socket that the client is connected to.
- instance -
The instance that the client wants to connect to.
- instance_port -
The port that the instance is listening on.
- auth -
The authentication token that the client has to provide to connect to the RSockServer.
- secure -
Whether or not the client is using SSL.
Initializes a reverse sockets client.
Connects to RSockServer.
Authenticates the client. Sends "AUTH~{AUTH_TOKEN}"
to RSockServer.
Connects the client to RSockServer. Sends "CONNECT"
to RSockServer.
Stops the client.
Args: localport: The port that the client will be listening on. user: The user that the client will be connecting as. subdomain: The subdomain that the client will be connecting to. port: The port that the server will be listening on. auth: The build auth token that the client will be using. notsecure: Whether or not to use SSL.
Adds a client to the list of clients.