临渊羡鱼,不如退而结网
.

SSH无法连接Ubuntu

现象:在通过CRT连接Ubuntu的时候出现无法连接的情况

原因:没有安装ssh服务

解决办法:

步骤一:安装openssh-server

sudo apt-get install openssh-server

步骤二:

修改/etc/ssh/sshd_config

vim /etc/ssh/sshd_config

在PerminRootLogin prohibit-password下面添加如下信息

PerminRootLogin yes

 

 步骤三:

通过CRT等工具发现可以连接了

posted @ 2019-10-29 10:01  胖胖小飞侠  阅读(536)  评论(0编辑  收藏  举报