ssh tunnel - python: gaierror [Error -2] Name or service not known sshTunnelForwarder -


below code giving gaierror [error -2] name or service not known sshtunnelforwarder

self.server=sshtunnel.sshtunnelforwarder(                         ('abc.int.net', 22),                         ssh_username="sshuser",                         ssh_password="sshpassword",                         remote_bind_address=('remote.address.host', 4040)                         ) 

it works fine in windows

try passing local_bind_address parameter too. better explicitly state local port remote port being mapped to.

self.server=sshtunnel.sshtunnelforwarder(                     ('abc.int.net', 22),                     ssh_username="sshuser",                     ssh_password="sshpassword",                     remote_bind_address=('remote.address.host', 4040),                     local_bind_address=('127.0.0.1', 3331)                     ) 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -