#ssh configuration
3 messages · Page 1 of 1 (latest)
In /etc/ssh/sshd_config you can add a rule to only allow connections from a specific IP/hostname or a range of IPs like so:
# Replace 0.0.0.0 with the IP
AllowUsers [email protected]
# You can use *(wildcard) to make the same rule apply to all users
AllowUsers *@0.0.0.0
make sure to restart your ssh daemon for the config change to take effect. it's also a good idea to have some sort of backup you can roll back to before changing ssh settings in case things go wrong
How would i specify the range for local network ips? 192.168.0.1-255 or 192.168.0.*?