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

I have a linux machine running OpenSSH Server 4.3. How can I configure it to use keyboard-interactive authentication - define prompts and responses and so on.

Please be specific, as I am pretty new in this.


After some googling it appears that PAM (Pluggable authentication module) has to be involved with the process. Now I need to find out what module should be configured there. Any ideas?

share|improve this question
up vote 1 down vote accepted

Depending on what you are actually trying to accomplish, you will have to look into PasswordAuthentication and/or ChallengeResponseAuthentication, and write your own PAM module. Install and configure e.g. pam_opie to get an idea of how it works.

share|improve this answer

It mostly depends on your gnu/linux distro, but to start, be sure to write this into /etc/ssh/sshd_config.

PasswordAuthentication yes
share|improve this answer
Yes, but how do I configure the prompts are responses, what if i want to ask something else besides the password? – Vic Jan 31 '12 at 11:56
AFAIK "password-interactive" means that you are required to type the password, you can't give it as a parameter (without fooling ssh). – drcelus Jan 31 '12 at 14:05

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.