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也可以连

参考文章:Xshell使用root用户连接Linux

以上是关于ubuntu无法用root远程登录(xshell无法用root登录ubuntu,VS无法用root远程调试ubuntu)的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu无法用root远程登录(xshell无法用root登录ubuntu,VS无法用root远程调试ubuntu)

Xshell无法使用root远程登录Ubuntu16服务器

Ubuntu允许root远程登录配置

新安装的ubuntu18.04系统无法用xshell远程连接问题

Xshell远程登录Ubuntu虚拟机

解决Linux ubuntu下SSH无法连接的问题