fabfile.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Simplechaindb 作者: BUAANLSDE 项目源码 文件源码
def harden_sshd():
    """Security harden sshd.
    """
    # Disable password authentication
    sed('/etc/ssh/sshd_config',
        '#PasswordAuthentication yes',
        'PasswordAuthentication no',
        use_sudo=True)
    # Deny root login
    sed('/etc/ssh/sshd_config',
        'PermitRootLogin yes',
        'PermitRootLogin no',
        use_sudo=True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号