序言:在参考了其他大佬的给出的解决方案,本人稍微小结了一下方法,以免自己以后遗忘。
1. 编辑 /etc/ssh/sshd_config文件
#PasswordAuthentication no 的注释去掉,并且将no修改为yes
#PermitRootLogin without-password 修改为 PermitRootLogin yes
2. 启动ssh服务
输入指令 service ssh start 或者 /etc/init.d/ssh start
查看ssh是否开启 service ssh status 或者 /etc/init.d/ssh status
3. 使用远程工具连接
此时显示连接成功了
更多详细的步奏可以参考几篇本人觉得写的很好的文章:
https://www.cnblogs.com/yanhongjun/p/5764586.html
https://blog.csdn.net/qq_35428201/article/details/81222997