Hello Please i am facing this issue when connecting postgres outside pythonanywhere
INFO:paramiko.transport:Authentication (password) successful!
DEBUG:paramiko.transport:[chan 0] Max packet in: 32768 bytes
DEBUG:paramiko.transport:Received global request "hostkeys-00@openssh.com"
DEBUG:paramiko.transport:Rejecting "hostkeys-00@openssh.com" global request from server.
2023-10-26 13:32:26,456| ERROR | Secsh channel 0 open FAILED: open failed: Administratively prohibited
ERROR:paramiko.transport:Secsh channel 0 open FAILED: open failed: Administratively prohibited
2023-10-26 13:32:26,456| ERROR | Could not establish connection from local ('127.0.0.1', 5500) to remote ('mydb.postgres.pythonanywhere-services.com', 13428) side of the tunnel: open new channel ssh error: ChannelException(1, 'Administratively prohibited')
ERROR:sshtunnel.SSHTunnelForwarder:Could not establish connection from local ('127.0.0.1', 5500) to remote ('mydb.postgres.pythonanywhere-services.com', 13428) side of the tunnel: open new channel ssh error: ChannelException(1, 'Administratively prohibited')
DEBUG:paramiko.transport:EOF in transport thread
Traceback (most recent call last):
File "\vue\db.py", line 22, in <module>
connection = psycopg2.connect(
^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\psycopg2__init__.py", line 122, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
psycopg2.OperationalError: connection to server at "127.0.0.1", port 5500 failed: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.