LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2024, 01:26 PM   #1
nxct
LQ Newbie
 
Registered: Dec 2022
Posts: 4

Rep: Reputation: 0
Question Smartcard Authentication on RHEL 8


Hello all,

I am attempting to enable smartcard authentication on a RHEL 8.9 headless server. Most information I have found on this topic either deals with Debian based machines and this machine does have a GUI installed, however, I will be connecting remotely. Please let me know where I may be able to find steps on this installation process, or if you do know the steps, please share them! Thank you very much!!

Last edited by nxct; 04-29-2024 at 01:53 PM. Reason: Adding additional information
 
Old 04-29-2024, 01:55 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,705

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by nxct View Post
Hello all,

I am attempting to enable smartcard authentication on a RHEL 8.9 headless server. Most information I have found on this topic either deals with Debian based machines and this machine does have a GUI installed, however, I will be connecting remotely. Please let me know where I may be able to find steps on this installation process, or if you do know the steps, please share them! Thank you very much!!
Did you try putting "smartcard authentication on rhel 8" into a search engine???
https://access.redhat.com/documentat...0your%20system.

..or contacting Red Hat support???
 
Old 04-29-2024, 02:41 PM   #3
nxct
LQ Newbie
 
Registered: Dec 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Did you try putting "smartcard authentication on rhel 8" into a search engine???
https://access.redhat.com/documentat...0your%20system.

..or contacting Red Hat support???
Of course I did but most articles I saw revolved around setting up an Identity Manager and I thought this would be a bit overkill as there are only a small number of machines requiring this feature. Configuring another server to utilize one function didn't really make sense to me. Now, if this is the only way to go and there are no alternatives then I'm left with no other option but to configure based off these articles.
 
Old 04-29-2024, 03:15 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,705

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by nxct View Post
Of course I did but most articles I saw revolved around setting up an Identity Manager and I thought this would be a bit overkill as there are only a small number of machines requiring this feature. Configuring another server to utilize one function didn't really make sense to me. Now, if this is the only way to go and there are no alternatives then I'm left with no other option but to configure based off these articles.
If you did, then I assume you saw the exact article from Red Hat's own knowledgebase on how to set these things up. You didn't provide context about the number of machines, what you were trying to do, in what environment, or what your needs were. A simple search turned up exactly how to do what you're after on RHEL 8.

Any sort of centralized authentication system is going to require an authentication server.
 
Old 05-06-2024, 05:04 PM   #5
nxct
LQ Newbie
 
Registered: Dec 2022
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
If you did, then I assume you saw the exact article from Red Hat's own knowledgebase on how to set these things up. You didn't provide context about the number of machines, what you were trying to do, in what environment, or what your needs were. A simple search turned up exactly how to do what you're after on RHEL 8.

Any sort of centralized authentication system is going to require an authentication server.
I am currently running two machines that are fully stigged with DISA RHEL 8 checklists, which are 1 AWS EC2 instance and 1 Dell 7770, both of which are running RHEL 8.9. I do have a small Domain Controller running LDAP and AD. I am using MobaXterm and PuTTY as my SSH clients. The idea for the EC2 instances is that once a user would like to sign in with their smartcard or a sysadmin token, the machine would prompt the user for their pin. Same goes for remote access to the Dell 7770, however, when a user is going to be signing into the physical machine, a prompt for a pin would be activated as well.

I have tried utilizing the command ```authselect select sssd with-smartcard with-smartcard-required with-smartcard-lock-on-removal --force``` , however as the command states, any user that was attempting to sign in via username and password will not gain access. Well I wanted exceptions such as letting the users "ec2-user" and "administrator" still sign in via username and password. I attempted this by using config changes to the sshd_config file :

Code:
Match User ec2-user
    PasswordAuthentication yes
    PubkeyAuthentication yes
This unfortunately did not work. I also did make some progress utilizing the pcsc-tools and ran a ```pcsc_scan``` and received a :


Code:
Using reader plug'n play mechanism
Scanning present readers...
Waiting for the first reader... /

This hangs for some time and then I eventually cancel this command. I tried searching this online and one of the few recommendations was installing coolkey which does not work for me on RHEL 8 , it is not found under any repos and when I install it directly there are multiple errors that populate.

Again, my main goal is to enable smartcard authentication on both of these environments, the easiest way possible and that I can still have an emergency account necessary such as ec2-user or administrator in case for whatever reason the CAC authentication fails for every account.
 
  


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
Linux Newbie - Trying to configure RHEL 7.5 to authenticate with PIV Smartcard admend Linux - Newbie 1 07-31-2019 05:48 PM
[SOLVED] Disable cinnamon smartcard daemon (csd-smartcard) zetrotrack000 Linux - Newbie 4 10-07-2017 06:59 AM
[SOLVED] Getting Government SmartCard to work on RHEL 5.10 LinuxPenguin87 Red Hat 2 12-30-2014 03:19 PM
Has anyone implemented smartcard authentication via LDAP on RHEL 5.4 using NSS?? breds Linux - Software 0 06-21-2012 04:19 PM
Red Hat Enterprise 6 - Smartcard Authentication - Cannot Login wmx000 Linux - Newbie 3 06-19-2010 03:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:08 AM.

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