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
Its been a while i have been messing with TP-LINK TL-MR3020 router. Before with couple of modifications to hardware and software i made a temperature monitor with room light controller via a custom web interface. If you view below links you will have an idea.
http://pixelatedpic.blogspot.com/2013/01/openwrt-on-tl-mr3020-controlling-arduino.html
http://pixelatedpic.blogspot.com/2013/04/openwrt-on-tl-mr3020-controlling.html
This time i flush the TL-MR3020 with Openwrt. After couple of usb packages and audio packages i just plug in the USB sound card (which was given by whoknowz - https://www.facebook.com/nashith) to the router.
When the USB sound card is detected from the linux, you can check by command dmesg. Then install the madplay or any player you prefer.
I installed madplay because it play audio streams and play local files.
For test i played the audio stream from atoll radio and it works great. Just ssh the router and pass this command
wget -o - http://radioatoll.serverroom.us:7088/ | madplay -
Locally played an 1KHz tone to test the audio played locally. madplay 440Hz_44100Hz_16bit_05sec.mp3
when this command passes the mp3 file starts to play. :)
http://pixelatedpic.blogspot.com/2013/01/openwrt-on-tl-mr3020-controlling-arduino.html
http://pixelatedpic.blogspot.com/2013/04/openwrt-on-tl-mr3020-controlling.html
This time i flush the TL-MR3020 with Openwrt. After couple of usb packages and audio packages i just plug in the USB sound card (which was given by whoknowz - https://www.facebook.com/nashith) to the router.
When the USB sound card is detected from the linux, you can check by command dmesg. Then install the madplay or any player you prefer.
I installed madplay because it play audio streams and play local files.
For test i played the audio stream from atoll radio and it works great. Just ssh the router and pass this command
wget -o - http://radioatoll.serverroom.us:7088/ | madplay -
Locally played an 1KHz tone to test the audio played locally. madplay 440Hz_44100Hz_16bit_05sec.mp3
when this command passes the mp3 file starts to play. :)
These applications can be used to make many useful gadgets.
Opensource rocks...\::/
Comments