Advertisement
Guest User

Untitled

a guest
Oct 9th, 2017
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. sshtunnel.BaseSSHTunnelForwarderError: Could not establish session to SSH gateway
  2.  
  3.  
  4.  
  5. with SSHTunnelForwarder(
  6. ('10.42.100.4', 22),
  7. ssh_username='serv_user',
  8. ssh_password='serv_pass',
  9. remote_bind_address=('127.0.0.1', 8080)
  10. ):
  11. logger.debug('ssh tunnel estabilished')
  12. client = paramiko.SSHClient()
  13. client.load_system_host_keys()
  14. client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  15. client.connect('127.0.0.1', 22)
  16. client.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement