PAM SSHD run external script before dropping to SSH shell

Closed Posted Mar 11, 2011 Paid on delivery
Closed Paid on delivery

I'm looking for a way to prompt a user to enter a secret token when logging in via SSH. Yes, I know they have to enter a username/password already, but I want them to enter an additional secret token.

I've heard that it's possible to make either PAM or SSHD run a script first, and the script can then drop you to shell when it's done. This would be ideal- we could make it drop you to a Python or PHP script, prompt for the token there, and then if the token is entered correctly, drop you to the shell. If you have a better suggestion for how to do it (custom PAM module?), I'm open to suggestions.

All I want you to do is configure this on a dev machine I'll give you access to. You don't have to write the script, you just have to configure whatever so that the script runs when you try to log in via SSH.

It *must be secure*. It doesn't help me if there's a way to bypass the script. :-)

Linux System Admin UNIX

Project ID: #981187

About the project

2 proposals Remote project Active Apr 15, 2011

2 freelancers are bidding on average $375 for this job

Vinanth

As per my understanding we you need to be prompted for a password before logging into the SSH, i can help you on other suggestions to help you better. Do let me know, when can we have a discussion. I can help you with More

$400 USD in 2 days
(0 Reviews)
0.0
dudentag

Already did it.

$350 USD in 1 day
(0 Reviews)
0.0