psql: FATAL: Ident authentication failed for user "username" Error and Solution

in Categories , , , , , , last updated August 19, 2008

Q. I’ve installed Postgresql under Red Hat Enterprise Linux 5.x server. I’ve created username / password and database. But when I try to connect it via PHP or psql using following syntax:

psql -d myDb -U username -W

It gives me an error that read as follows:

psql: FATAL: Ident authentication failed for user “username”

How do I fix this error?

Red Hat Enterprise Linux Static Routing Configuration For v 4.x/5.x/6.x/7.x

in Categories , , , , , last updated August 16, 2017

I have two network interfaces connected to two different routers as follows:

[a] eth0 LAN network 10.0.0.0/8 – gateway IP – 10.8.2.65

[b] eth1 ISP assigned network 202.54.22.128/28 – gateway IP – 202.54.22.129

I can only ping to public server but not to another servers inside my LAN? I am not able to route traffic via 10.8.2.65. How do I configure static routing under Red Hat Enterprise Linux 5.x/6.x/7.x or CentOS Linux 5.2/6.x/7.x?