I would like to get $PGDATA from server with SSH connection under postgres user but I have some issues:
ssh postgres@myServer
postgres@myServer's password:
But I don't know the password and I don't want to use it or know it...
So I tried something else;
ssh -p NumPortOK postgres@myServer
ssh_exchange_identification: Connectionn closed by remote host
How can I connect with postgres and get $PGDATA please ?