How to limit SSH User Logins?

Limit remote access to those users who actually need it.

Open the /etc/ssh/sshd_config file.
# vi /etc/ssh/sshd_config
Add an AllowUsers line at the lowest of the file with a space separated by list of usernames. For example, user tecmint and sheena both have access to remote ssh.
AllowUsers david mark
Now restart ssh service.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

List of Common Available Ports On Cloud And VPS Servers

Inside our Cloud and VPS hosting services we want to make assured our clienteles have the skill...

Cloud Hosting VS. Shared Hosting

Shared hosting is the general hosting solution. But using a shared hosting solution user has to...

How to block IP using .htaccess file?

1) You may block entrance to your website from particular IP addresses using .htaccess file.2)...

How to Delete a cPanel Account From SSH

You can also terminate an account using SSH/command line if wanted using the following script....

How to Delete a cPanel From WHM

Eliminating an existing cPanel account is a very fast and easy process, but be advised this move...