본문 바로가기

IT 기술/코드샘플

구글 OTP 각서버 동일하게 적용



sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install google-authenticator

sudo vi /etc/pam.d/sshd
	auth required pam_google_authenticator.so nullok
sudo vi /etc/ssh/sshd_config
	ChallengeResponseAuthentication yes
	PasswordAuthentication no

su [사용자]
cd /home/[사용자]
google-authenticator
vi .google_authenticator
	IFOCJJGLRDBTL5UJ3CYVGVEQYP
	" RESETTING_TIME_SKEW 54081899-361 54087293-519 54167743-10
	" RATE_LIMIT 3 30 1626072612
	" WINDOW_SIZE 17
	" DISALLOW_REUSE 54202420
	" TOTP_AUTH
	31115755
	95534382
	85136180
	14377575
	97203041

sudo systemctl restart sshd.service

'IT 기술 > 코드샘플' 카테고리의 다른 글

데이터 베이스 비교후 없는 테이블 찾기  (0) 2021.07.15
자빅스 설치 CentOs7, mysql  (0) 2021.07.13
Jenkins gitLab 연동하기  (0) 2021.05.25
centOS 구글 otp 적용  (0) 2021.05.24
GitLab 설치  (0) 2021.05.20