Re: prompt or not prompt for the password depending on the user
- From: per@xxxxxxxxxxxx (Per Hedeland)
- Date: Thu, 21 Jun 2007 19:55:22 +0000 (UTC)
In article <1182396993.907439.287390@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
wong_powah@xxxxxxxx writes:
To clarify:
I want the server to prompt or not prompt for the password depending
on the user and client.
How to do that?
Can host based authentication (using ~/.ssh/authorized_keys, etc) do
that?
HostbasedAuthentication doesn't use authorized_keys, that's for
PubkeyAuthentication. Anyway the answer is "sort of" for both - i.e. it
can be set up the way you want, but you normally can't make sure it
stays that way.
HostbasedAuthentication isn't used much, since the security is pretty
weak - I believe it's disabled by default in most sshd installations.
But anyway you could set it up with the client's public key in that
user's ~/.shosts file, and IgnoreRhosts=no in sshd_config. But then
normally nothing prevents that user from adding other client public
keys to his ~/.shosts, or other users from adding any client public keys
to theirs.
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.
--Per Hedeland
per@xxxxxxxxxxxx
.
- Follow-Ups:
- Re: prompt or not prompt for the password depending on the user
- From: wong_powah
- Re: prompt or not prompt for the password depending on the user
- References:
- prompt or not prompt for the password depending on the user
- From: wong_powah
- Re: prompt or not prompt for the password depending on the user
- From: Dave
- Re: prompt or not prompt for the password depending on the user
- From: wong_powah
- prompt or not prompt for the password depending on the user
- Prev by Date: Re: where is SSH_MSG_KEXDH_INIT defined?
- Next by Date: Re: pb with remote command cleanup
- Previous by thread: Re: prompt or not prompt for the password depending on the user
- Next by thread: Re: prompt or not prompt for the password depending on the user
- Index(es):
Relevant Pages
|
|