-
-
Notifications
You must be signed in to change notification settings - Fork 141
2FA with SSH #67
-
Hello Rob,
many thanks for your work. I'm David, a sysadmin at a Scientific Investigation Center in Spain. I was wondering if I can use your code to implement 2FA with ssh instead of using Google's.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments
-
You probably can, but that would require making a PAM module and I have no idea or experience with this. Sorry.
Out of curiosity: what's wrong with Google's? Why wouldn't you use it?
Beta Was this translation helpful? Give feedback.
All reactions
-
I'd not recommend attempting this as Googles PAM module appears to be entirely self dependent, if you wrote a PAM module that used this PHP code to validate it and something went wrong with the PHP in your server, you could end up in a situation where you are not able to log in to your server.
Beta Was this translation helpful? Give feedback.