So I have a centos 7 server with 2 users.
User1 has the ~/.ssh/authorized_keys file with proper permissions and with externaluser's public key in it.
User2 has the ~/.ssh/authorized_keys file with proper permissions and with the same externaluser's public key in it.
Externaluser can ssh to User1 with no problems, however, he gets Permission denied (publickey,gssapi-keyex,gssapi-with-mic) error when trying to ssh to User2.
Why does this happen? It's literally the same public key, properly pasted into the authorized_keys file of each user, using the same method.
ssh -vfor more detailed information about what's happening and add it to your question. – francescop21 Oct 09 '18 at 15:48.sshand onauthorized_keys. – RalfFriedl Oct 09 '18 at 16:14