Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-19-2006, 02:20 AM   #1
LQ Newbie
Registered: Dec 2006
Posts: 1

Rep: Reputation: Disabled
How to connect Postgresql remotely?

I have new setup a Postgresql , add the port 5432, local ping is ok,
but can't connect remotely...
anyone can help me please?
Old 12-19-2006, 07:54 AM   #2
Registered: Jun 2004
Location: Emmeloord, Netherlands
Distribution: Ubuntu
Posts: 63

Rep: Reputation: 15
It must be listening on all addresses (not just localhost)
and you must have a user that can connect from a remote location.
Old 12-19-2006, 03:46 PM   #3
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
When you start up postmaster on the server be sure to add the -i option to the command line. The man page reads, "This enables TCP/IP or Internet domain socket communication. Without this option, only local Unix domain socket communication is possible."

Another step is to set up an entry in pg_hba.conf to allow the external host to connect. hba stand for Host Based Authentication.

Lastly, as Vorick mentioned, the user that connects must have access to the database they are connecting to.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I connect to Webmin remotely? wslyhbb Linux - Networking 3 11-18-2010 04:03 AM
How do I connect remotely? Jongi Linux - Networking 5 11-15-2006 07:24 PM
Can't remotely ftp connect jake3988 *BSD 10 04-16-2005 12:52 PM
connect remotely pyre Linux - Newbie 8 03-19-2004 11:20 AM
cannot connect remotely noizez Linux - Networking 2 04-03-2003 09:53 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration