Yubico Forum
https://forum.yubico.com/

[HOW TO] - Yubikey SSH login via PAM module
https://forum.yubico.com/viewtopic.php?f=23&t=822
Page 2 of 2

Author:  moulip [ Sun Feb 03, 2013 3:56 pm ]
Post subject:  Re: [HOW TO] - Yubikey SSH login via PAM module

Ok I have finally succeeded in ssh login to my Debian Box.
The debug mode was useful.

Author:  Tom [ Mon Feb 04, 2013 9:43 am ]
Post subject:  Re: [HOW TO] - Yubikey SSH login via PAM module

Well done.

Author:  loiphin [ Sat Feb 09, 2013 4:08 pm ]
Post subject:  Re: [HOW TO] - Yubikey SSH login via PAM module

I followed the tutorial but it only worked with One Factor Authentication. It would accept either the password or the OTP. I tried 2FA (the "required" setup) and it didn't work at all. Luckily I didnt lock myself out of my box :o Then I changed the following in /etc/ssh/sshd_config:

Code:
ChallengeResponseAuthentication yes
PasswordAuthentication yes


And then two factor authentication worked properly :P :P

Code:
loi-mbp:~ loiphin$ ssh 172.16.1.202
Yubikey for `loiphin':
Password:
Welcome to Ubuntu 12.10 (GNU/Linux 3.5.0-23-generic x86_64)


Author:  Tom [ Mon Feb 11, 2013 9:27 am ]
Post subject:  Re: [HOW TO] - Yubikey SSH login via PAM module

Thanks, i have edited the original post.

Author:  Novakin [ Fri Mar 29, 2013 2:49 pm ]
Post subject:  Re: [HOW TO] - Yubikey SSH login via PAM module

Thank you very much,

I found this HOW-TO tutorial via google, and maybe you should remind how pple can generate the KEY and ID via the api. This was my main problem as i'm totally new to Yubikey.

Btw it is still possible to bypass the yubikey auth tapping enter (you will still be prompted for a password) connecting via sftp.

Author:  Eddie [ Mon Aug 12, 2013 9:22 pm ]
Post subject:  Re: [HOW TO] - Yubikey SSH login via PAM module

I've successfully setup SSH login on Ubuntu 13.04 Server & Client. For your reference...

http://smri.io/kpdh

Author:  nebi [ Mon Feb 10, 2014 11:20 am ]
Post subject:  Re: [HOW TO] - Yubikey SSH login via PAM module

Are there any ways to only enable yubikey + password requirement for some user ?

Author:  Aggraxis [ Fri Oct 24, 2014 3:13 am ]
Post subject:  Re: [HOW TO] - Yubikey SSH login via PAM module

Hi!

I have a linux VPS set up where I currently use my Yubikey OTP and my password to log in via SSH (thanks in no small part to the info in this guide). I just got a new NEO to check out the U2F functionality. I love how simple that is to use with my Google accounts and that I can still use the Yubico Authenticator to generate numeric codes from my NEO in a pinch. Does / will the Yubico PAM support the U2F functionality for logins?

Thanks,

Agg

Author:  Tom [ Mon Oct 27, 2014 3:23 pm ]
Post subject:  Re: [HOW TO] - Yubikey SSH login via PAM module

Not yet, but you are welcome to submit a pull request on our github.com/yubico

Author:  Mobilegraphy [ Wed Feb 03, 2016 5:47 am ]
Post subject:  Re: [HOW TO] - Yubikey SSH login via PAM module

How can i set yubikey for single user (only one user)
Other user normal login without Yubikey!
(p/s: on Linux)

Page 2 of 2 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/