mirror of
https://github.com/MrMasterbay/geo-block-ssh.git
synced 2026-04-26 11:55:49 +03:00
Geo Blocks SSH Logins even if the password is right when not in the right country
| readme.md | ||
| ssh-country-check | ||
To implement this:
-
Save this script as "/usr/local/sbin/ssh-country-check" with your changed config
-
Add this to /etc/ssh/sshd_config: ForceCommand /usr/local/sbin/ssh-country-check
-
Make the script executable: chmod +x /usr/local/sbin/ssh-country-check
-
Restart SSH service: systemctl restart sshd