(boolean): Allow concurrent connections over a single tunnel You can set to 0.0 for disable keepalive.ĭefault: 5.0 (no keepalive packets are sent) This can be useful to keep connections alive over a NAT. The connection, a 'keepalive' packet will be sent (and ignored by (float): Interval in seconds defining the period in which, if no data was sent over HandlerSSHTunnelForwarderError exceptions when enabled (boolean): Allow silencing BaseSSHTunnelForwarderError or Logging.StreamHandler handler and DEFAULT_LOGLEVEL (logging.Logger): logging instance for sshtunnel and paramikoĭefault: logging.Logger instance with a single Since it may negatively affect interactive sessions (boolean): Turn on/off transport compression. (list): Look for pkeys in folders on this list, for example. (boolean): Enable/disable load of keys from an SSH agent The same format as remote_bind_address) can be specified, such as (tuple): Remote tuple in the format ( str, int) representing the IPĪnd port of the remote side of the tunnel. The same format as local_bind_address) can be specified, such as (list): In case more than one tunnel is established at once, a list of tuples (in Optional so both ('', 8000) and ('10.0.0.1', ) are validĬhanged in version 0.0.8: Added the ability to use a UNIXĭomain socket as local bind address local_bind_addresses (tuple): Local tuple in the format ( str, int) representing the IP and Will be created where all SSH traffic will be passed through If True and user's ssh_config_fileĬontains a Prox圜ommand directive that matches the specified SSHTunnelForwarder.stop() method or using it as a context. The connection(s) are closed when explicitly calling the Sshtunnel works by opening a port forwarding SSH connection Sshtunnel - Initiate SSH tunnels via a remote gateway. List of directories where SSH pkeys (in the format `id_*`) may be found n, -noagent Disable looking for keys from an SSH agent z, -compress Request server for compression over SSH transport SSH configuration file, defaults to ~/.ssh/config c SSH_CONFIG_FILE, -config SSH_CONFIG_FILE V, -version Show version number and quit v, -verbose Increase output verbosity (default: ERROR) t, -threaded Allow concurrent connections to each tunnel S KEY_PASSWORD, -private_key_password KEY_PASSWORD k SSH_HOST_KEY, -ssh_host_key SSH_HOST_KEY tmp/baz.sockĮquivalent to ssh -LPORT:xxxxxxxxx:xxxx, being the local IP address optional.īy default it will listen in all interfaces (0.0.0.0) and choose a random port. ip_n:port_nĮlements may also be valid UNIX socket domains: Local bind address sequence: ip_1:port_1 ip_2:port_2. Remote bind address sequence: ip_1:port_1 ip_2:port_2. R IP:PORT, -remote_bind_address IP:PORT h, -help show this help message and exit Set with "- ssh_address" if immediately after -R or -L Ssh_address SSH server IP address (GW for SSH tunnels) However, I don’t understand how to use sshtunnel python librairy to access to the mongodb database.Usage: sshtunnel -R For simple scp commands in a python script, I successfully used jumpssh. ssh/config in order to ssh directly the remote_server. |Local PC| - ssh -> |getaway server| - ssh -> |remote_server| -> |mongodb database| My local machine can not access to it directly, therefore I use one getaway server that has access. I want to connect to a mongodb database that is located on a remote server. Sorry, I can not figure out by myself whereas it is probably very simple.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |