We don't know if your DB is in the same network or not as your Django App server but the answer is to open the database port on the database server. If you're using postgresql on the Database, then install a psql client on the app server and test connect from there. If it works, then your Django should also work too.
On Tue, Jul 19, 2022 at 11:32 PM Wennie Catabay <wenniecata...@gmail.com> wrote: > Hello, > > I am stuck on defining how to connect a remote database from another > server using ssh. I am able to connect the remote database with putty using > ssh, but but I don't know how to apply it in django. > > Thank you. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/d0c2f56f-c739-4508-8529-4c5107f08636n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/d0c2f56f-c739-4508-8529-4c5107f08636n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Abdul Qoyyuum Bin Haji Abdul Kadir HP No: +673 720 8043 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA3DN%3DWPXTKCnK9yS56Rd5zR%3Dqh2FPQbz%3D%3Dr85ayQofnLnjLqA%40mail.gmail.com.