Is it possible to force specific users to login with public key, while allowing other users to login with password? Since public key authentication (with passphrase) is stronger than password-only authentication, we would like to require sudoers to login with public key. However, it is less convenient to force normal users to do so. In sshd_config, I don't see any policy-related configuration. Thanks for help.
|
| |||||
feedback
|
migrated from stackoverflow.com Feb 22 '11 at 15:53
This question came from our site for professional and enthusiast programmers.
|
You have a few options. In this answer I'm going to assume you have a Take a look at the
You could in theory accomplish something similar with a PAM configuration that would simply fail authentication attempts by people in the
This means that only people not in the | |||
feedback
|