切换至root用户: sudo -i 编辑ssh配置: vim /etc/ssh/sshd_config 修改以下配置: PermitRootLogin yes PasswordAuthentication yes 重启ssh服务: service sshd restart完成!
评论