This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
аутентификация_с_использованием_opie [2015/06/02 09:48] val |
аутентификация_с_использованием_opie [2015/06/02 13:56] val [Сервер OTPW] |
||
---|---|---|---|
Line 97: | Line 97: | ||
* [[https://www.digitalocean.com/community/tutorials/install-and-use-otpw|How To Install and Use OTPW for Single-Use SSH Passwords on Ubuntu 14.04]] | * [[https://www.digitalocean.com/community/tutorials/install-and-use-otpw|How To Install and Use OTPW for Single-Use SSH Passwords on Ubuntu 14.04]] | ||
+ | |||
+ | <code> | ||
+ | # cat /etc/pam.d/sshd | ||
+ | </code><code> | ||
+ | ... | ||
+ | auth sufficient pam_otpw.so | ||
+ | session optional pam_otpw.so | ||
+ | # Standard Un*x authentication. | ||
+ | @include common-auth | ||
+ | ... | ||
+ | </code><code> | ||
+ | # cat /etc/ssh/sshd_config | ||
+ | </code><code> | ||
+ | ... | ||
+ | ChallengeResponseAuthentication yes | ||
+ | ... | ||
+ | </code> |