Re: Unix (pam) authorization with required public key
Hans Harder <[email protected]> Wed, 01 Sep 2010 07:52:24 +0200
| Newsgroups | gmane.network.openssh.general |
|---|---|
| Message-ID | <[email protected]> |
You cannot do such a thing with ssh, but you can always do something extra on unix level after login. For instance : - use a general account for login with public key and for each pubkey in authorized_keys2 specify an ssh command to localhost which is password enabled. - or start a shell which requires a password. Hans > > We each other haven't understood. > > I have adjusted authorization on a public key. But only two methods: > > 1. The server will authorize without the password (if the key formed > without the password). > > 2. The client ask the key password (if the key is protected by the password). > > It is necessary for me: > > 1. What the client is mandatory had a public key without the password > without which the server won't pass the client. > > 2. That at authorization the client would ask the unix password of the > user on the server. >