Re: prompt or not prompt for the password depending on the user



In article <1182473265.513197.19840@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
wong_powah@xxxxxxxx writes:
On Jun 21, 3:55 pm, p...@xxxxxxxxxxxx (Per Hedeland) wrote:

With PubkeyAuthentication, you could set up that user's
~/.ssh/authorized_keys with the *user's* public key, and the added
restriction of a from= option. But then normally nothing prevents that
user from removing that restriction, or other users from putting
whatever they want in their ~/.ssh/authorized_keys. Of course this
situation is the default in most sshd installations.

All of the above applies to OpenSSH, don't know about others, you didn't
say what SSH implementation you were asking about.

I use PubkeyAuthentication on OpenSSH.
After the user login, then a special program (instead of the default
shell) will start, parse the user commands and do only what is allowed
for that user.
Then the user cannot change its setting.

OK, that possibility is why I sprinkled all those "normally" over the
text. Then PubkeyAuthentication set up as above should be fine - see the
sshd man page for the details of the format to use in authorized_keys.

--Per Hedeland
per@xxxxxxxxxxxx
.