I have no way of testing this and can't find the answer online. If I put AllowUsers in my sshd_config file with nothing following it would the behavior be to allow everyone to SSH into the computer, or to deny everyone?
Example:
// all of sshd_conf file...
AllowUsers 4 1 Answer
If I put
AllowUsersin my sshd_config file with nothing following it would the behavior be to allow everyone to SSH into the computer, or to deny everyone?
It is so hard to try?
echo "AllowUsers" > /etc/ssh/sshd_config
systemctl restart sshd
systemctl status sshd # no error
ssh user@localhost # succeedSo yes, you can put there AllowUsers option without argument and it will behave like there would be no option (all users will be allowed, if you don't specify any DenyUsers or any AllowUsers before).