Skip to content

Allow LAN-only password login to sshd

See here and then add this to /etc/sshsshd_config:

Match Address 192.168.1.0/24
PasswordAuthentication yes

This allows clients on the local network to login using password authentication while limiting the Internet in general to key-based authentication.

Be the first to like.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*