修改sshd_config文件,命令为:
vim /etc/ssh/sshd_config
将#PasswordAuthentication yes的注释去掉
PasswordAuthentication yes
将#PermitRootLogin without-password的注释去掉并修改为
PermitRootLogin yes
启动SSH服务
service ssh start
查看SSH服务状态是否正常运行
service ssh status
添加开机启动
update-rc.d ssh enable
本文来自投稿,不代表博客主立场,如若转载,请注明出处:https://www.bokezhu.com/2020/06/12/675.html