V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
ps1aniuge
V2EX  ›  Linux

分享 Linux 中执行的 powershell 脚本: ssh-deny-host

  •  
  •   ps1aniuge · 2019-10-23 13:17:05 +08:00 · 2272 次点击
    这是一个创建于 1640 天前的主题,其中的信息可能已经有所发展或是发生改变。
    这是 powershell 版的 ssh deny host,
    支持 centos7,centos8,debian9,Ubuntu1604,Ubuntu1804
    脚本本身支持 debian10,但是在 debian10 上安装 powershell 还稍有麻烦,需要你手动安装 powershell。

    我的所有 powershell 脚本,下载地址:
    https://pan.baidu.com/s/16deKKe3ZnCg809lffiVZWg
    第 1 条附言  ·  2020-04-07 10:46:37 +08:00
    用任务计划 每分钟执行即可。
    * * * * * /usr/bin/pwsh -file /tmp/sshdenyhost.ps1
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2278 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:19 · PVG 08:19 · LAX 17:19 · JFK 20:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.