On Thu, February 22, 2007 11:27 am, Angelo wrote:
> I've been looking through my sshd config file and what I want to do is
> like so:
>
> root: login directly with key exchange
> all other valid users: login with password or key exchange.
>
> Is this possible?
With no information about the version of SSH you're using or your OS, I
must make some assumptions. You're running OpenBSD 4.0 with the latest
version of OpenSSH.
From
http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_config&apropos=0&sektion=0&manpath=OpenBSD+4.0&arch=i386&format=html
and the sample in /etc/ssh/sshd_config, you can see that you can use
"Match User root" and specify "PasswordAuthentication no". Thereby only
users whose username is "root" will have PasswordAuthentication disabled.
All other users will use whatever is defined elsewhere in the file (or the
default, which is "PasswordAuthentication yes").
-ME
-- List Info: http://erdelynet.com/ssh-l/ List Archives: http://erdelynet.com/archive/ssh-l/ To Unsubscribe: Mail mailto:ssh+unsubscribe@erdelynet.comReceived on Thu, 22 Feb 2007 21:32:03 -0500 (EST)
This archive was generated by hypermail 2.1.8 : Thu Feb 22 2007 - 22:54:27 EST