Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 11:27 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat Nov 14, 2015 10:32 pm 
Offline

Joined: Sat Nov 14, 2015 10:19 pm
Posts: 1
I just received my Yubikey in the mail today and successfully got 2FA working with SSH for publickey OR password+yubikey (keyboard-interactive). While I was reading a bunch of sites trying to figure out how to set this up, I stumbled upon "AuthenticationMethods" for SSH configs and got intrigued: could I set up SSH to require publickey+password OR password+yubikey. Unfortunately I couldn't figure it out.

My attempted config was:
Code:
PubkeyAuthentication yes
PasswordAuthentication yes
ChallengeResponseAuthentication yes
AuthenticationMethods publickey,password keyboard-interactive:pam
UsePAM Yes


What happened is that it took my publickey and then spit out:
Quote:
Further authentication required
Using keyboard-interactive authentication.


I put in my password but then it also prompted for my OTP... which I don't want to have to use if I have my publickey.

Does anyone have any ideas how to solve this? It appears PAM is taking over for "password" authentication which I don't know how to stop.


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group