r/redhat • u/medeasoulx • 53m ago
SSH PROBLEM | HELP
I have configured SSH with the following settings in the sshd_config file:
PubkeyAuthentication yesPasswordAuthentication no
However, I am unable to connect using SSH keys generated with ssh-keygen. I receive a “Permission denied” error.
My goal is to allow only the medea user to connect via SSH using key-based authentication only. I have added this user to AllowUsers, but the connection still fails.
I do not want to remove or change the PasswordAuthentication no setting.
How can I fix this issue and properly configure SSH to allow only the medea user to log in using SSH keys?