I'd like to allow SSH password authentication from only a certain subnet. I see the option to disallow it globally in /etc/ssh/sshd_config:
# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes
Is there a way to apply this configuration to a select range of IP addresses?
sshd_configis not Python;)– Nick T Feb 07 '17 at 17:25Matchblock extends until the nextMatchdirective or until the end of the file. That's why you have to put it at the end. – Gilles 'SO- stop being evil' Dec 19 '17 at 15:27Match Allto terminate it – anthony Feb 14 '22 at 02:54