Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sshd_config to include PubkeyAuthentication option #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ikstream
Copy link

Thanks a lot for your work.

During a semi-recent install of fedora 40 (just shortly before the 41 release) I encountered an issue, that I just could not access the unlock shell. After some fiddeling I found out, that the PubkeyAuthentication needs to be set to yes to make
it work. I found the RedHat documentation which mentions that the value has to be set explicitly.

"Use the AuthenticationMethods configuration directive in the /etc/ssh/sshd_config file to specify which authentication methods are to be utilized. [...] Note that each of the requested authentication methods needs to be explicitly enabled using a corresponding configuration directive (such as PubkeyAuthentication) in the /etc/ssh/sshd_config file."

Also the sshd_config(5) manual supports that in the AuthenticationMethods block.

"Note that each authentication method listed should also be explicitly enabled in the configuration."

Interestingly this is not an issue on system that have been running for a while. I could reproduce the issue between multiple Fedora 40 installs.

Use the AuthenticationMethods configuration directive in the
`/etc/ssh/sshd`_config file to specify which authentication methods are to be
utilized. [...] Note that each of the requested authentication methods needs to
be explicitly enabled using a corresponding configuration directive (such as
`PubkeyAuthentication`) in the `/etc/ssh/sshd_config` file.

https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/security_guide/sect-security_guide-encryption-data_in_motion-secure_shell-multi_auth_methods#sect-Security_Guide-Encryption-Data_in_Motion-Secure_Shell-Multi_Auth_Methods

Signed-off-by: Stefan Venz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant