Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know if it is possible to configure pam to require both radius AND ssh-key to successfully authenticate ?

share|improve this question
up vote 2 down vote accepted

The SSH key check is done by sshd itself before calling PAM. And while the SSHv2 protocol itself allows multiple authentication methods, most SSH daemons do not support requiring more then one.

However, if you have OpenSSH 6.2 or newer, you can use the new AuthenticationMethods option to require publickey and one of password|keyboard-interactive to succeed:

AuthenticationMethods  publickey,password  publickey,keyboard-interactive
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.