Giter Site home page Giter Site logo

secure_ssh's Introduction

secure_ssh

linux机器的安全脚本,实现ssh访问控制,多次失败登录即封掉IP,防止暴力破解

你的vps很可能正在被暴力破解密码

如果你的机器是Centos,去看看/var/log/secure

如果你的机器是Ubuntu,去看看/var/log/auth.log

解决方法

在Centos机器上运行run_centos.sh

在Ubuntu机器上运行run_ubuntu.sh

添加到你的crontab中,让脚本每分钟运行一次

* * * * * root /home/will/.local/secure_ssh/run_ubuntu.sh

这样暴力破解你密码的ip会进入到hosts.deny黑名单中,以后他就不能再登录了

为了防止你自己登陆失败,需要在hosts.allow白名单中加入你自己的ip,形如:

sshd:10.0.0.:allow

secure_ssh's People

Contributors

yongxin-ms avatar

Stargazers

 avatar hirak0 avatar Kalinote avatar 阿呆攻防 avatar  avatar Michael Ren avatar tuboshu avatar PEIN avatar  avatar FS.IO avatar 编程吴彦祖 代码蔡徐坤 avatar DongXin avatar yangzhiwen avatar  avatar wii avatar

Watchers

 avatar 123456 avatar

Forkers

freezesoul

secure_ssh's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.