Forums

Can't connect via SSH

I just signed up for a paid account for Pythonanywhere yesterday, and today I have been having no luck either connecting to mysql database through SSH tunneling in Mysql workbench or just plain SSH to the server.

I was attempting to log in via the command :

ssh stuartduncan@ssh.pythonanywhere.com -vv

For a while I was getting a connection refused message, now I am getting a message saying the Network is down.

Any thoughts on what I might be doing wrong? Would this also be related to how I can't get the SSH tunnel to work for Mysql workbench ?

Thanks.

UPDATE : I can connect using my mobile network on phone using an SSH app. Is my IP potentially blocked? I have tried with two different computers and I have no firewall on.

ANOTHER UPDATE : I can also use SSH on my computer if I connect to a VPN before attempting, so I am guessing maybe something happened with my ip address ?

I think that most likely there were bad connection attempts from your IP (eg: you put in the password wrong in MySQL workbench, and it tried to connect 10 times with the wrong password). That would have caused us to temporarily block your IP to stop malicious people from bruteforcing passwords.

Is there a point where I am good to try again? I am still getting the error when I don't connect via VPN and it has been about 30 mins ?

It takes an hour for the ban to to be lifted.

Hi,

I cannot use an SSH login. Yesterday it was blocked because of too many attempts. Today, I still cannot log in via SSH. What should I do?

Thank you.

If you are blocked because of too many failed SSH logins, the block will be lifted after an hour. Otherwise, make sure that you're connecting to the correct server and using the correct credentials: https://help.pythonanywhere.com/pages/SSHAccess/

I am getting this warning: 'Permission denied, please try again.'

Is there anything to configure on the server before I attempt to log in from my end, isn't it?

I do not see any attempts at logging in for your account, so my guess is that permission error is from your computer and it is preventing you from making the connection.

Hi,

I tried using ssh.pythonanywhere.com instead of ssh.eu.pythonanywhere.com, and it worked! I'd thought I needed to use the EU.

You'd need to usessh.eu.pythonanywhere.com if you were originally registered on our EU branch; if you're logging via www.pythonanywhere.com, that means you're not on the EU branch (btw. you can migrate if you want).