How to use 2FA with cert based SSH auth?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I used this guide to enable Google TOTP auth on Ubuntu 16.04.
SSH only allows cert based auth (PasswordAuthentication no)
I set ChallengeResponseAuthentication yes and restarted the SSH service.
I don't get prompted for a 2FA token.
So I added the following line to sshd_config:
AuthenticationMethods publickey,keyboard-interactive
Then restarted the SSHd
Now I get prompted for a password after entering the cert password, but the 2FA codes are not accepted. I used both the main numeric keyboard and the dedicated numeric keyboard to enter the numbers.
UsePAM yes hasn't been changed.
How to config 2FA with cert based SSH auth?
ssh authentication sshd key-authentication 2-factor-authentication
add a comment |Â
up vote
0
down vote
favorite
I used this guide to enable Google TOTP auth on Ubuntu 16.04.
SSH only allows cert based auth (PasswordAuthentication no)
I set ChallengeResponseAuthentication yes and restarted the SSH service.
I don't get prompted for a 2FA token.
So I added the following line to sshd_config:
AuthenticationMethods publickey,keyboard-interactive
Then restarted the SSHd
Now I get prompted for a password after entering the cert password, but the 2FA codes are not accepted. I used both the main numeric keyboard and the dedicated numeric keyboard to enter the numbers.
UsePAM yes hasn't been changed.
How to config 2FA with cert based SSH auth?
ssh authentication sshd key-authentication 2-factor-authentication
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I used this guide to enable Google TOTP auth on Ubuntu 16.04.
SSH only allows cert based auth (PasswordAuthentication no)
I set ChallengeResponseAuthentication yes and restarted the SSH service.
I don't get prompted for a 2FA token.
So I added the following line to sshd_config:
AuthenticationMethods publickey,keyboard-interactive
Then restarted the SSHd
Now I get prompted for a password after entering the cert password, but the 2FA codes are not accepted. I used both the main numeric keyboard and the dedicated numeric keyboard to enter the numbers.
UsePAM yes hasn't been changed.
How to config 2FA with cert based SSH auth?
ssh authentication sshd key-authentication 2-factor-authentication
I used this guide to enable Google TOTP auth on Ubuntu 16.04.
SSH only allows cert based auth (PasswordAuthentication no)
I set ChallengeResponseAuthentication yes and restarted the SSH service.
I don't get prompted for a 2FA token.
So I added the following line to sshd_config:
AuthenticationMethods publickey,keyboard-interactive
Then restarted the SSHd
Now I get prompted for a password after entering the cert password, but the 2FA codes are not accepted. I used both the main numeric keyboard and the dedicated numeric keyboard to enter the numbers.
UsePAM yes hasn't been changed.
How to config 2FA with cert based SSH auth?
ssh authentication sshd key-authentication 2-factor-authentication
asked May 9 at 15:58
Gaia
16913
16913
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f442814%2fhow-to-use-2fa-with-cert-based-ssh-auth%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password