Edit - I sorted it out. Solution near end of post. PEBCK.
Hi,
I have been trying to connect to my postgresql database with ssh tunneling.
I connect - I think successfully with local command:
ssh -L 3333:nverse-825.postgres.pythonanywhere-services.com:3306 nverse@ssh.pythonanywhere.com
Which gives me:
<<<<<<:>~ PythonAnywhere SSH. Help @ https://help.pythonanywhere.com/pages/SSHAccess
And a request for a password. I get a terminal and a command prompt and a quick whoami removes any remaining existential difficulty. However whenever I try to connect I get a:
channel 3: open failed: connect failed: Connection refused
pop up in my brand new terminal. So something is happening.
Locally I get some kind of connection refused error depending on how I try to connect. I have tried a few ways.
Any help appreciated. Thanks.
Edit -- I tried with a different port number like this:
ssh -L 3333:nverse-825.postgres.pythonanywhere-services.com:5432 nverse@ssh.pythonanywhere.com
But still get the same error.
Edit again... Aaaaaand I try with the right port number... finally....
ssh -L 3333:nverse-825.postgres.pythonanywhere-services.com:10825 nverse@ssh.pythonanywhere.com
And it works.
Sorry about that....
:)