Allowing specific users for SSH logins

Open the /etc/ssh/sshd_config file

Add an AllowUsers line at the bottom of the file and write the name of the user for whom you want to allow SSH

Allow Users user1 user2 user3

Now only user1, user2 and user3 can login though SSH.

Vimal Tuesday 17 September 2013 - 07:29 am | | Default
Used tags: , ,

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.