preventing certain users from connecting to ssh via password
ben darby
ben at cvrse.com
Wed Apr 18 08:31:50 UTC 2007
* 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070418/73fa32ee/attachment.sig>
More information about the ubuntu-users
mailing list