Hi all, identical issue from here, also following the help section with a European paid account, I am having the error:
2022-06-18 15:06:03,810| ERROR | Secsh channel 0 open FAILED: open failed: Administratively prohibited
2022-06-18 15:06:03,811| ERROR | Could not establish connection from local ('127.0.0.1', 53782) to remote ('XXX.mysql.pythonanywhere-services.com', 3306) side of the tunnel: open new channel ssh error: ChannelException(1, 'Administratively prohibited')
The code executed below:
sshtunnel.SSH_TIMEOUT = 5.0
sshtunnel.TUNNEL_TIMEOUT = 5.0
mydb = None
tunnel = None
try:
pdb.set_trace()
tunnel = sshtunnel.SSHTunnelForwarder(
('ssh.pythonanywhere.com'),
ssh_username='xxx',
ssh_password='xxx',
remote_bind_address=('XXX.mysql.pythonanywhere-services.com', 3306)
)
tunnel.start()
mydb = mysql.connector.connect(
user='xxx',
passwd='xxx',
host='127.0.0.1',
port=tunnel.local_bind_port,
db='xxx$XXX',
)
If i switched the SSH hostname with the european one 'ssh.pythonanywhere.com' I get this error:
Could not connect to gateway ssh.eu.pythonanywhere.com:22 : Unable to connect to ssh.eu.pythonanywhere.com: [Errno 61] Connection refused
Thanks for your help!