We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
sudo dnf install -y pamu2fcfg pam-u2f mkdir -p ~/.config/Yubico pamu2fcfg > ~/.config/Yubico/u2f_keys sudo authselect enable-feature with-pam-u2f
pamu2fcfg package is required only for configuration.
pamu2fcfg
To use the YubiKey as MFA instead of passwordless auth: use with-pam-u2f-2fa instead of with-pam-u2f with authselect.
with-pam-u2f-2fa
with-pam-u2f
Generate and enroll key in Yubikey:
ssh-keygen -t ed25519-sk
Edit /etc/ssh/sshd_config and restart sshd service:
/etc/ssh/sshd_config
PubkeyAcceptedKeyTypes [email protected],[email protected]
(Check if [email protected] required with ed25519-sk key ?)
[email protected]
Add the public key generated by ssh-keygen to SSH authorized_key as normal.
Load the key in the SSH agent before login (Will ask to tap the Yubikey):
ssh-add id_ed25519_sk ssh user@ip
Local authentication:
SSH authentication:
The text was updated successfully, but these errors were encountered:
JGoutin
No branches or pull requests
Local authentication
pamu2fcfg
package is required only for configuration.To use the YubiKey as MFA instead of passwordless auth: use
with-pam-u2f-2fa
instead ofwith-pam-u2f
with authselect.SSH authentication
Client side
Generate and enroll key in Yubikey:
Server side:
Edit
/etc/ssh/sshd_config
and restart sshd service:(Check if
[email protected]
required with ed25519-sk key ?)Add the public key generated by ssh-keygen to SSH authorized_key as normal.
Login
Load the key in the SSH agent before login (Will ask to tap the Yubikey):
Role changes
Local authentication:
SSH authentication:
The text was updated successfully, but these errors were encountered: