Secure Shell
Re: Unix (pam) authorization with required public key Aug 31 2010 10:17PM
?л?я Ско?ик (ilya skorik me) (2 replies)
Re: Unix (pam) authorization with required public key Sep 01 2010 07:36PM
Florian Gleixner (flo redflo de)
You probably should have a look at kerberos and limit your ssh server to
kerberos authentication (GSSAPIAuthentication yes) but disallow pam
(UsePAM no) and others like public key authentication.
With kerberos your client and server have to be known by the kerberos
server and have to have a kerberos key (as far as i know). The kerberos
database can be put into LDAP. Microsofts AD does this, but it is
possible to make this with openldap too.

On 09/01/2010 12:17 AM, éÌØÑ óËÏÒÉË wrote:
> Approximately so.
> A problem that people from an enterprise network have access to the
> server. And there is Windows in their network. Recently the virus has
> stolen passwords at one of managers, has entered on the one of servers
> and has download the bad software.
> I would like will restrict access in case of simple larceny of
> passwords by viruses, but I am not able to do it standard manner.
> Because from server side all managers come from one ip addresses. Also
> I don't want to setup authorization through a public key. Since it
> isn't compatible with ldap authorization on the server. And managers
> can come on the server without entering any passwords.
> All that I want is a mandatory presence of a public key and standard
> authorization with request of the password which is stored on the
> server.
> 2010/8/31 Mark Naker <mnaker (at) gmail (dot) com [email concealed]>:
>> If I understand correctly, you are trying to use a public key setup in ssh
>> that is passphrase protected by the destination hosts local password. If I
>> have not understood correctly, feel free to ignore the rest of this email.
>> This is not possible in an easily configured and direct method.
>> I have not set up ssh in this way, however, it should be possible to stack
>> authentication methods in your PAM configuration such that first the
>> publickey would be used, and then the machine would also ask for the local
>> passord. You will need to play around with the sshd_config file quite a
>> bit.
>> You may see a result where users have to enter their key passphrase, and the
>> password of the destinataion system with a setup like this.
>> It is also possible that you may have to write your own PAM module to handle
>> authentication in this manner.
>> Good luck!
>> 2010/8/31 éÌØÑ óËÏÒÉË <ilya (at) skorik (dot) me [email concealed]>
>>> 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.
>>> 2010/8/31 Greg Wooledge <wooledg (at) eeg.ccf (dot) org [email concealed]>:
>>>> On Tue, Aug 31, 2010 at 10:51:08AM +0400, ???????? ???????????? wrote:
>>>>> I want to set ssh authorization through unix/pam with mandatory public
>>>>> key. I want will make sure that except the password the user has an
>>>>> acknowledgement of legitimacy in the form of a public key. Thus the
>>>>> password should be from unix/pam, not from key.
>>>>> I tried different variants. It turned out with key and without the
>>>>> password, or the password undertook from a key, instead of from
>>>>> unix/pam.
>>>> Public key authentication does not involve a password, and it does not
>>>> involve PAM.
>>>> If you are attempting to require the use of a passPHRASE on the private
>>>> key, then you need to be aware that the private key is only seen by the
>>>> ssh client, not the server. The server has no idea whether the key was
>>>> passPHRASE protected or not.
>>>> Server-side passWORDS have nothing at all to do with public key
>>>> authentication, or with the passPHRASES that are used to protect the
>>>> private keys.
>>> --
>>> Yours faithfully, Ilya Skorik
>> --
>> :(){ :|:& };:

Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with SUSE -


[ reply ]
Re: Unix (pam) authorization with required public key Aug 31 2010 11:35PM
Robert Hajime Lanning (robert lanning gmail com) (3 replies)
Re: Unix (pam) authorization with required public key Sep 01 2010 10:20AM
Filip FÄ?fara (tazzek tasak org)
Re: Unix (pam) authorization with required public key Sep 01 2010 07:46AM
Aris Adamantiadis (aris adamantiadis belnet be)
Re: Unix (pam) authorization with required public key Sep 01 2010 01:06AM
Dan Mahoney, System Admin (danm prime gushi org)


Privacy Statement
Copyright 2010, SecurityFocus