PAM SSHD run external script before dropping to SSH shell

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. :-)

Evner: Linux, System Administrator, UNIX

Se mere: shell script pam, pam ssh shell script, pam script logging shell, pam run shell script, pam sshd external, in linux shell script, write a python script, ssh, run, access token script, run custom shell script run script, run script linux, python log script, ssh python, write linux script, sshd, sshd pam shell, ssh help, linux shell script password, write linux shell, python script write, python token, ssh linux, write python script, php ssh

Om arbejdsgiveren:
( 0 bedømmelser ) Ranipet, India

Projekt ID: #981187

2 freelancere byder i gennemsnit $375 på dette job


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 Flere

$400 USD in 2 dage
(0 bedømmelser)

Already did it.

$350 USD på 1 dag
(0 bedømmelser)