UbuntuServer

Restrict SSH access to only user accounts that should have it. For example, you may create a group called »sshlogin« and add the group name as the value associated with the AllowGroups variable located in the file /etc/ssh/sshd_config.

AllowGroups sshlogin
Then add your permitted SSH users to the group »sshlogin«, and restart the SSH service.

sudo adduser username sshlogin
sudo /etc/init.d/ssh restart

Se även Linux, Ubuntu, FOSS