Tuesday, February 22, 2011

Linux - Allow SSH access to Linux Server for new user account

To allow SSH access to create user

AllowUsers user1 user2
This directive is opposite of DenyUsers directive.

AllowGroups group1 group2
This directive is opposite of DenyGroups directive.

You should always block access to root user/group:
Open /etc/ssh/sshd_config file:

# vi /etc/ssh/sshd_config

Make sure at least one user is allowed to use 'su -' command.

Save the file and restart the sshd service.

No comments:

Post a Comment