preventing certain users from connecting to ssh via password

Tomoki Taniguchi tomoki.taniguchi at gmail.com
Wed Apr 18 08:42:14 UTC 2007


is there anyway to allow password login on certain users
and requiring public/private key exchange on the others?



On 4/18/07, ben darby <ben at cvrse.com> wrote:
> * Tomoki Taniguchi wrote:
> > is there anyway to prevent a certain list of users from connecting via
> > ssh using their user account?  only allowing those user to
> > authenticate using a public/private key?
>
> just add a line containing
>
> AllowUsers username1 username2
>
> to your /etc/ssh/sshd_config and it will disable all other users being
> able to log in.
>
> --
> ben darby
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
>


-- 
Tomoki Taniguchi
SKYPE: taiyocable.com_taniguchi_tomoki
MSN: tomoki_taniguchi at hotmail.com
YAHOO: tomoki_taniguchi
AIM: tomoki taniguchi




More information about the ubuntu-users mailing list