Forums

Could not establish session to SSH gateway

  • sorry for my bad english I'm brazilian

I tried to connect with SSH but I'm getting the following error :

sshtunnel.BaseSSHTunnelForwardedError: Could not establish session to SSH gateway My code is this

import sshtunnel

tunnel = sshtunnel.SSHTunnelForwarder(('ssh.pythonanywhere.com'),

ssh_username='_',

ssh_password='_',

remote_bind_address=('_.pythonanywhere-services.com', 3306) )

tunnel.start()

What Can I do to solve the error?

Have a look at the SSH tunnel troubleshooting guide