Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sshtunnel.BaseSSHTunnelForwarderError: Could not establish session to SSH gateway
- with SSHTunnelForwarder(
- ('10.42.100.4', 22),
- ssh_username='serv_user',
- ssh_password='serv_pass',
- remote_bind_address=('127.0.0.1', 8080)
- ):
- logger.debug('ssh tunnel estabilished')
- client = paramiko.SSHClient()
- client.load_system_host_keys()
- client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- client.connect('127.0.0.1', 22)
- client.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement