This is a simple setup guide to enabling Two Factor Authentication (2FA) on Linux SSH login. I this article I wont go deep into setup and issues that I have faced when implementing this. First thing is first Update your system first. I have used Ubuntu 20.04 and it is always up to date. To enable 2FA you need to install google authenticator modules sudo apt install libpam-google-authenticator Configuration for PAM and SSHD Add the the following line to /etc/pam.d/sshd and After adding this line please restart the sshd services. auth required pam_google_authenticator.so Go to /etc/ssh/sshd_config and check if the following line exist. Default value will be "no" so change it to "yes" to activate. ChallengeResponseAuthentication yes Configuration for Authenticator In the terminal run google authenticator command It will ask few things to acknowledge by user. Details you can see from the below video. Once this part is done you are ready to use the 2FA in ubuntu. T
As you all know in my previous post i have talked about an keypad which was designing. Finally almost the hard part is over. This keypad or controller based on three to four parts.
First is keypad part: Its 16 key keypad which i have design and implemented. Its 16 push buttons connected to the input shift register. When the user operates a button, the shifts will change it to serial format and fed to micro controller.
Second part is input shift register: It handles all the button activities. which means it will convert the button input to serial format. Actually the shits are parallel to serial or a MUX.
Third part is the brain: Brain of the this circuit does all the computing. The code that me and my friend whoknowz wrote was doing the conversion part to determine which button was pressed. Its kinda "AI" part. It was hard at first but later was easy to decode the whole serial part. The brain stores the password of this system and when the user insert the pass it will display on the LCD the feedback result. if the password is correct it will call to a next level.
Later i wrote the code for controlling lights, relays etc. Without the authentication you cant use the system. Later i will expand this project and include an voice chip to give voice command. like "WELCOM MASTER" hehehe.. everyone enjoy the pics now. i know the pics are not enough. but i am having some problem with my camera, once its fixed i will post more.
Comments