devops

google authenticator 사용해서 2차 구글 OTP 설정 방법 본문

DevOps/OS

google authenticator 사용해서 2차 구글 OTP 설정 방법

vata500 2021. 8. 12. 12:12
반응형

아주 간단한 방법 설명, ssh 접속 후 아래 과정을 진행하면 됨, 기본적을 ssh가 설치되어있어야함

sudo apt install libpam-google-authenticator

google-authenticator 

sudo nano /etc/ssh/sshd_config

 ChallengeResponseAuthentication no

 ChallengeResponseAuthentication yes

 'Ctrl + x y Enter'

sudo nano /etc/pam.d/sshd

아래 줄 추가

#One-time authentication via Google Authenticator 
auth required pam_google_authenticator.so

sudo systemctl restart ssh

반응형

'DevOps > OS' 카테고리의 다른 글

리눅스 which, echo, export, LANGUAGE 명령어  (0) 2021.08.24
리눅스 사용자 추가 변경 및 제거 (퍼미션)  (0) 2021.08.24
윈도우(window)에서 SSH 서버 접속하기  (0) 2021.08.23
snap 명령어  (0) 2021.08.23
rustup 설치 Tip  (0) 2021.08.23
Comments