ubuntu无法用root远程登录(xshell无法用root登录ubuntu,VS无法用root远程调试ubuntu)
Posted Dontla
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu无法用root远程登录(xshell无法用root登录ubuntu,VS无法用root远程调试ubuntu)相关的知识,希望对你有一定的参考价值。
如果没有openssh-server
需要安装openssh-server
apt install openssh-server
然后修改配置文件
gedit /etc/ssh/sshd_config
将PermitRootLogin prohibit-password
改成PermitRootLogin yes
然后重启ssh服务
service sshd restart
然后就可以用root登录了
xshell可以连
VS也可以连
以上是关于ubuntu无法用root远程登录(xshell无法用root登录ubuntu,VS无法用root远程调试ubuntu)的主要内容,如果未能解决你的问题,请参考以下文章
ubuntu无法用root远程登录(xshell无法用root登录ubuntu,VS无法用root远程调试ubuntu)