开发者社区 问答 正文

linux中调整sshd服务配置,并重载服务的方法是什么?

linux中调整sshd服务配置,并重载服务的方法是什么?

展开
收起
游客qzzytmszf3zhq 2021-12-05 17:11:09 687 分享 版权
1 条回答
写回答
取消 提交回答
  • [root@proxy ~]# vim /etc/ssh/sshd_config
    .. ..
    PermitRootLogin no                                 //禁止root用户登录
    PermitEmptyPasswords no                             //禁止密码为空的用户登录
    .. ..
    [root@proxy ~]# systemctl restart sshd
    
    
    2021-12-05 17:11:27
    赞同 展开评论