SSH – Limit user logins.

SSH logins can be limited to only certain users who need remote access.
The ssh server is configured by the file /etc/ssh/sshd_config. If you wish you can restrict remote access to specific users. For example to only allow “john” and “julia” to login add the following:

AllowUsers john julia

and restart the sshd service.

Leave a Reply

Your email address will not be published. Required fields are marked *

*