LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-12-2019, 10:53 AM   #1
wdatkinson
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
ssh key and yubikey


I have a cloud-based Debian 9 box that is currently authenticating by yubikey and password. My desire to is to replace the password with an ssh key. The end result would be upon an inbound connection, the yubikey would be inserted and the button pressed and viola, I'm in.

So far I'm able to get the box to auth with ssh keys or the password/yubikey option, but not the ssh-key/yubikey config.

There are several articles online that reference similar issues, but none of them seem to help. Most of them detail disabling PAM, but I need PAM to do the yubikey auth. I've tried various AuthenticationMethods in /etc/ssh/sshd_config as disabling common-auth in /etc/pam.d/sshd but no joy.

Anyone try this?
 
Old 11-12-2019, 12:02 PM   #2
PECONET009
Member
 
Registered: Sep 2006
Location: Finland.
Distribution: kali linux.
Posts: 156

Rep: Reputation: 21
This might give you an idea on your issue.

Quote:
Originally Posted by wdatkinson View Post
I have a cloud-based Debian 9 box that is currently authenticating by yubikey and password. My desire to is to replace the password with an ssh key. The end result would be upon an inbound connection, the yubikey would be inserted and the button pressed and viola, I'm in.

So far I'm able to get the box to auth with ssh keys or the password/yubikey option, but not the ssh-key/yubikey config.

There are several articles online that reference similar issues, but none of them seem to help. Most of them detail disabling PAM, but I need PAM to do the yubikey auth. I've tried various AuthenticationMethods in /etc/ssh/sshd_config as disabling common-auth in /etc/pam.d/sshd but no joy.

Anyone try this?
More here;
https://ocramius.github.io/blog/yubi...d-local-login/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I have a SIMPLE question about U2F (yubico yubikey) and Linux PC taylorkh Linux - Security 3 08-09-2018 01:31 PM
YubiKey and Slackware Geremia Slackware 4 07-26-2014 01:22 PM
LXer: Howto enroll and use a Yubikey with privacyIDEA LXer Syndicated Linux News 0 05-14-2014 01:20 AM
SSH skips public key authentication for a key, but works with another key simopal6 Linux - General 1 07-06-2011 08:33 AM
[SOLVED] Yubikey, su and /usr/bin/kupdateapplet boblikeslinux Linux - Security 3 06-17-2010 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration