安裝
apt install libpam-google-authenticator
編輯/etc/pam.d/sshd 加入
auth required pam_google_authenticator.so nullok
編輯 /etc/ssh/sshd_config 加入
ChallengeResponseAuthentication yes
KbdInteractiveAuthentication yes
執行
google-authenticator
參考文件
https://github.com/google/google-authenticator-libpam
qrencode -t ansiutf8 `cat .google_authenticator `
沒有留言:
張貼留言