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
I did some tests with LM35DZ, which is a temperature sensor with analog out put. I connected it to micro controller's ADC (Analog to Digital Converter). The out put of the sensor is 10mV/°C After some calculations, ADC value was converted to centigrade.
Finally it works, i am able to monitor the room temperature from my LCD Display. At beginning i used an my multimeter to differentiate the sensor value and actual room temperature, the meter reading and LCD reading was perfect. After a while i got an idea to detect temperature and give alarm or warning. I modified the code and little bit and tadaaaaa i can verify the temperature variation. Actually i did was if the temperature is greater than 40°c, give an warning, lit an LED or drive a buzzer.
I think this is a cool one for these days. Cause its hot..
Finally it works, i am able to monitor the room temperature from my LCD Display. At beginning i used an my multimeter to differentiate the sensor value and actual room temperature, the meter reading and LCD reading was perfect. After a while i got an idea to detect temperature and give alarm or warning. I modified the code and little bit and tadaaaaa i can verify the temperature variation. Actually i did was if the temperature is greater than 40°c, give an warning, lit an LED or drive a buzzer.
I think this is a cool one for these days. Cause its hot..
Comments