Devo usare una connessione SSH bidirezionale su localhost. Ho un utente chiamato barman e altri chiamati postgres . Come utente barman , ho creato una chiave RSA e copiato la sua chiave pubblica nel file var / lib / postgres / .ssh / authorized_keys. Quindi, come utente postgres , ho creato un'altra chiave RSA e copiato la sua chiave pubblica nel file var / lib / barman / .ssh / authorized_keys.
Ma ora, come utente barman , ad esempio, quando lo faccio ssh postgres@localhostricevo il messaggio di errore:
Permission denied (publickey).
E lo stesso risultato dell'utente postgres . Cosa sto facendo di sbagliato?