Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am able to ssh into my ubuntu server with a user name and password from the terminal. However, when I try to connect to the server using the same name and password via pgadmin, I am getting the following error:

could not connect to server: Operation timed out Is the server running on host "" and accepting TCP/IP connections on port 5432?

Why am I able to connect through terminal but not pgadmin?

share|improve this question
Please show the command line used to connect to the server. – S19N Oct 22 '12 at 22:17

Because your firewall is blocking port 5432, maybe? If port 22 is open, and port 5432 is not, that would be why.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.