42.3. Restricting Access to the SSH Server

By default, any UNIX user will be allowed to log in remotely to the SSH server on your system, or use it to upload and download files. On a mail server system or one that hosts websites, however, this may not be appropriate. You might want to allow most users to only log in to your POP3, FTP, or Usermin servers instead. Although it is possible to achieve this by giving them a shell like /bin/false, this could cause other problems with user Cron or At jobs.

Fortunately, the SSH server can be configured to restrict who can log in. Just follow these steps:

1.
On the module's main page, click on the Access Control icon to bring up a form listing allowed and denied users.
2.
To block everyone except a few ...

Get Managing Linux® Systems with Webmin™ System Administration and Module Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.