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
Due to few technical and other issues i have been away from blogging my electronics project and experiments i do. Lets hope this start will be better than all the past years. I have few things which i would like to write some article that others get the benefit of.
Few months back i got my Raspberry Pi Zero and did some cool things using it. Recently i am on to IoT stuffs so i cam across few new things for me, like MQTT and integration of hardware to MQTT server ruining locally. Possibilities are endless, i can make my light talking to MQTT server and it will handle rest by communicating the hardware like Arduino, ESP8266, Pi etc. I will detail one by one on my next post.
Thank you everyone who support my blog and gain knowledge from my articles. Stay tune for more update from me.
Few months back i got my Raspberry Pi Zero and did some cool things using it. Recently i am on to IoT stuffs so i cam across few new things for me, like MQTT and integration of hardware to MQTT server ruining locally. Possibilities are endless, i can make my light talking to MQTT server and it will handle rest by communicating the hardware like Arduino, ESP8266, Pi etc. I will detail one by one on my next post.
Thank you everyone who support my blog and gain knowledge from my articles. Stay tune for more update from me.
Comments