Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

Edit:

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

2 Answers 2

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

 
discard

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.