I've the following:
- Amazon Linux 2
- Postgres 12 installed a user created
I'm using ssh to connect to my instance.
The issue is that it doesn't let me to connect to my postgres database. I've created a user using something like:
create user myuser with encrypted password 'strongpassword';
and postgres server is running ok, but when i try to connect to my db it throws:
$: psql -h localhost --port 5432 --password -U myuser -d mydb
psql: error: FATAL: Ident authentication failed for user "myuser"
I don't know why it doesn't recognize my user.
Thanks in advance
Update