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.
]]>
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.
]]>