目标:可以使用root身份通过ssh登录操作系统
vi /etc/ssh/sshd_config
(如果没有vi无法编辑,使用命令apt install vim安装)
将#PermitRootLogin prohibit-password
修改为PermitRootLogin yes
重启SSH服务/etc/init.d/ssh restart
再次使用SSH即可使用root远程登录
© 版权声明
文章版权归作者所有,未经允许禁止转载。
THE END

目标:可以使用root身份通过ssh登录操作系统
vi /etc/ssh/sshd_config
(如果没有vi无法编辑,使用命令apt install vim安装)
将#PermitRootLogin prohibit-password
修改为PermitRootLogin yes
重启SSH服务/etc/init.d/ssh restart
再次使用SSH即可使用root远程登录
暂无评论内容