cd /etc/postgresql/9.x/main/
open file named postgresql.conf
sudo vi postgresql.conf
add this line to that file
listen_addresses = '*'
then open file named pg_hba.conf
sudo vi pg_hba.conf
and add this line to that file
host all all 0.0.0.0/0 md5
It allows access to all databases for all users with an encrypted password
restart your server
sudo /etc/init.d/postgresql restart
Related Posts:
- Postgresql: Scripting psql execution with password
- How to exit from PostgreSQL command line utility: psql
- psql: FATAL: database “
” does not exist - PostgreSQL: Show tables in PostgreSQL
- PostgreSQL “DESCRIBE TABLE”
- Psql could not connect to server: No such file or directory, 5432 error?
- Getting error: Peer authentication failed for user “postgres”, when trying to get pgsql working with rails
- What is the format for the PostgreSQL connection string / URL?
- “use database_name” command in PostgreSQL
- PSQLException: current transaction is aborted, commands ignored until end of transaction block
- psql: FATAL: Ident authentication failed for user “postgres”
- fe_sendauth: no password supplied
- How can I drop all the tables in a PostgreSQL database?
- How to restart PostgreSQL in Ubuntu 18.04
- FATAL: password authentication failed for user “postgres” (postgresql 11 with pgAdmin 4)
- PostgreSQL: Remotely connecting to Postgres instance using psql command
- postgresql duplicate key violates unique constraint
- How to change PostgreSQL user password?
- No function matches the given name and argument types
- PostgreSQL error: Fatal: role “username” does not exist
- psql: command not found Mac
- How to change PostgreSQL user password?
- eroku “psql: FATAL: remaining connection slots are reserved for non-replication superuser connections”
- Permission denied for relation
- postgres does not know where to find server configuration
- input file appears to be a text format dump. Please use psql
- PG COPY error: invalid input syntax for integer
- Postgres: INSERT if does not exist already
- What’s the default superuser username/password for postgres after a new install?
- How to see active connections and “current activity” in PostgreSQL 8.4
- pg_dump and pg_restore: input file does not appear to be a valid archive
- Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
- How to find which version of TensorFlow is installed in my system?
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- error: command ‘gcc’ failed with exit status 1 while installing eventlet
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- What is this JavaScript “require”?
- What is this JavaScript “require”?
- How to establish ssh key pair when “Host key verification failed”
- Why does the terminal show “^[[A” “^[[B” “^[[C” “^[[D” when pressing the arrow keys in Ubuntu?
- How to solve “Kernel panic – not syncing – Attempted to kill init” — without erasing any user data
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- Failed to get D-Bus connection: Operation not permitted
- Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
- After installing with pip, “jupyter: command not found”
- using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”
- Failed to start mongod.service: Unit mongod.service not found
- gpg: no valid OpenPGP data found
- What is the default password for Postgres
- Ubuntu ‘-bash: nano: command not found’
- Unable to install gem – Failed to build gem native extension – cannot load such file — mkmf (LoadError)
- missing FROM-clause entry for table
- Unable to locate package libapache2-mod-php7
- Laravel 5.2 Storage::makeDirectory($dir) is not creating directory
- Valgrind permission denied on file
- Package php5 have no installation candidate (Ubuntu 16.04)
- pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/
- “extra data after last expected column” while trying to import a csv file into postgresql
- postgresql: error duplicate key value violates unique constraint
- nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- Unable to establish SSL connection upon wget on Ubuntu 14.04 LTS
- pg_ctl: no database directory specified and environment variable PGDATA unset
- Postgres Error: More than one row returned by a subquery used as an expression
- No module named ‘openpyxl’ – Python 3.4 – Ubuntu
- Telnet [Unable to connect to remote host: Connection refused]
- How to Install pip for python 3.7 on Ubuntu 18?
- When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0)
- How to verify if nginx is running or not?
- C++ error: undefined reference to ‘clock_gettime’ and ‘clock_settime’
- PostgreSQL create table if not exists
- make -j 8 g++: internal compiler error: Killed (program cc1plus)
- Firewalld is not running [closed]
- wget: unable to resolve host address `http’
- PostgreSQL visual interface similar to phpMyAdmin?
- pdflatex not found. pdflatex is needed for pdf output
- java.lang.ClassNotFoundException: org.postgresql.Driver, Android
- PIP Could not find any downloads that satisfy the requirement SQLAlchemy
- GROUP BY and COUNT using ActiveRecord
- Removing all installed OpenCV libs
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- Why can’t I print to terminal with my python script?
- how to search for a directory from the terminal in ubuntu
- whats the meaning of curl “-s” and “-m”
- What are the functional differences between .profile .bash_profile and .bashrc
- Difference in sites-available vs sites-enabled vs conf.d directories (Nginx)?
- How to view all ssl certificates in a bundle?
- GRANT SELECT to all tables in postgresql
- Can you run Docker natively on the new Windows 10 (Ubuntu) bash userspace?
- How do I reattach to Ubuntu Server’s ‘do-release-upgrade’ process?
- Postgresql: what does GRANT ALL PRIVILEGES ON DATABASE do?
- Postgres equivalent to MySQL’s \G?
- Postgres equivalent to MySQL’s \G?
- dpkg-reconfigure: unable to re-open stdin: No file or directory
- Heartbleed: how to reliably and portably check the OpenSSL version?
- Centos 7 save iptables settings
- How to open port for a specific IP address with firewall-cmd on CentOS? [duplicate]
- Apache2 config variable is not defined
- Automate the installation of postfix on Ubuntu
- What is the debian-sys-maint MySQL user (and more)?
- apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName