In the sshd2_config file (usually located in the /etc/ssh2 directory)
you place the following directive.

AllowedAuthentications          publickey

That will allow only public key authentication and will reject any other
form.  Alternatively you could have the following.

      AllowedAuthentications          publickey,hostbased, password
      RequiredAuthentications         publickey

 Which will allow various forms of authentication but *requires* 'publickey'
in order to successfully log in.  This is good when you want two forms of
authentication (i.e. RequiredAuthentications     publickey,password).  Good
luck.

--
Mark Radleigh
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dennis
Sent: Thursday, January 25, 2001 4:10 PM
To: [EMAIL PROTECTED]
Subject: Force public key only

Hi all..

Is it possible to force the sshd to insist on the use of public keys.
If that fails, I'd like it to not accept any other form of authentication.

Cheers
Dennis


Reply via email to