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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -