Skip to content

MrMasterbay/geo-block-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

To implement this:

  1. Save this script as "/usr/local/sbin/ssh-country-check" with your changed config

  2. Add this to /etc/ssh/sshd_config: ForceCommand /usr/local/sbin/ssh-country-check

  3. Make the script executable: chmod +x /usr/local/sbin/ssh-country-check

  4. Restart SSH service: systemctl restart sshd

About

Geo Blocks SSH Logins even if the password is right when not in the right country

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages