Forums

Cannot connect to a database outside of PythonAnywhere through SSH

My SSH configurations:<br> Host: on the image <br> Username: on the image <br> Password: the password my PA account <br> My SSH configurations

And here's my general configuration. Everything is basically the same in terms of credentials

enter image description here

The SSH hostname should be "ssh.pythonanywhere.com"

Thanks, everything works fine.

A FINAL NOTE FOR THOSE WHO FACED THE SAME PROBLEM

  1. YOUR SSH HOST MUST BE SET TO "ssh.pythonanywhere.com"
  2. YOUR SSH PASSWORD MUST BE SET TO YOUR PA ACCOUNT PASSWORD
  3. YOUR GENERAL HOST MUST BE SET TO "username.mysql.pythonanywhere-services.com
  4. YOUR GENERAL USERNAME MUST BE SET TO YOUR PA USERNAME
  5. YOUR GENERAL PASSWORD MUST BE SET TO YOUR MYSQL PASSWORD

Glad you got that working! We have some notes on that on our help page, too.