could not connect to server: can't connect postgres on the server to postico on my local
fixed the issue in postgres 9.5 postgresql.conf and pg_hba.conf files are located in
/etc/postgresql/9.5/main/

not in
/var/lib/postgresql/9.5/main/

you have to login as server root user and run each one of the command and that will give where are the files
find / -name postgresql.conf

find / -name pg_hba.conf

in my instance when i ran the command i got this
/var/lib/postgresql/9.5/main/postgresql.conf
/etc/postgresql/9.5/main/postgresql.conf
/usr/lib/tmpfiles.d/postgresql.conf