ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Secure your ssh with google two factor authentication in 10 minutes

ssh 2fa two factor authentication linux

fritzfrog

google authenticator

secure ssh

multi factor authentication

two-factor authentication

Автор: JDs Tech Tips

Загружено: 2020-08-22

Просмотров: 296

Описание: Easily protect your servers against brute force and botnets like FritzFrog and other botnets and worms with the Google Authenticator pam module for ssh,just edit two files and you can add two factor authentication to your ssh session,then just use andOTP or google Authenticator, on your phone this provides an extra layer of security with a one time password for additional auth for your ssh sessions.

All commands used in the video are in the description below so you can simply copy and paste as you follow along.


Tools and Links used in this Video:
Get a droplet in digital Ocean https://m.do.co/c/f2e5d955a265
Brave Browser https://brave.com/jds304
Putty for ssh access :https://putty.org



Commands used
Please make sure your time and timezone are correct on the server before starting
These commands are for Ubuntu 20.04 but should be very similar on most Linux varients.

To install the authenticatior
sudo apt-get install libpam-google-authenticator

Edit the ssh config file to change the Auth type to also Challenge Auth

sudo nano -w /etc/ssh/sshd_config
Change
ChallengeResponseAuthentication yes


Edit the pam.d module file for ssh to add in the google auth lib reference
sudo nano -w /etc/pam.d/sshd
Add this line to the file.
auth required pam_google_authenticator.so nullok

restart your ssh service
sudo systemctl restart sshd.service

Run
google-authenticator

for the setup.
Answer yes to everything.
Please make sure you take a copy of the recovery keys supplied so you can get back into the box in case you loose your 2FA device.
Also make sure you leave a separate SSH session open or at least have console access to your server before making these changes.

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Secure your ssh with google two factor authentication in 10 minutes

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]