SSH passphrase and Password

Hello all,

Today we run ssh with keys on all our Solaris systems. But I wounder: Is it possible to add another authentication too. Like the os/system regular password so the users first need to enter the ssh phasssphrase and after that they need to enter the os/system password.

I need like Two Factor Authentication without any additional software/hardware.

Thx
Jocke

Try putting the following in the .profile.... or equivalent.

if test "$ALREADY_LOGGED_IN" != "$USER"
then
ALREADY_LOGGED_IN="$USER"
export ALREADY_LOGGED_IN
exec login $USER
fi

the exec login $USER should prompt for the password, the ALREADY_LOGGED_IN stops recursion from the logging in.

Hi,

It works but if you know how to send scripts through ssh you can override .profile.. I dont want that.

Anyone knows how/if this can be done on Solaris with SSH and PAM?

/Jocke

What would you expect to happen with 'scp'?