Re: [bitfolk] Adding a new user

Top Page

Reply to this message
Author: Gavin Westwood
Date:  
To: users
Subject: Re: [bitfolk] Adding a new user
On 14/09/2021 09:45, Samuel Bächler wrote:
> <snip>
> ***** Edit /etc/ssh/sshd_config on Host
>
> Change
>
>     PasswordAuthentication yes
>
> into
>
>     PasswordAuthentication no
>
> Then do 'systemctl restart ssh.service'


I would also recommend, to better secure your server against logon
attempts, adding 'AllowUsers' and a list of allowed users to sshd_config
or, if you have a lot of users requiring access or will be changing the
list reasonably often, 'AllowGroups' and add users requiring access to
the specified group(s).  Remember to reload or restart the ssh service
whenever you change sshd_config.

Gavin