ubuntu 17.04 下安装openssh-server报错

[亡魂溺海] 提交于 2019-12-04 11:25:02

执行 sudo apt install openssh-server 会报一下错误
这里写图片描述

需要我们安装openssh-client,其实系统里面已经有啦openssh-client
这里写图片描述

只是版本不对需要安装时带上版本号

sudo apt install openssh-client=1:6.6p1-2ubuntu1

这里写图片描述

再执行

sudo apt install openssh-server

继续配置openssh

sudo gedit /etc/ssh/sshd_config

将PermitRootLogin without-password注释掉并添加PermitRootLogin yes

#PermitRootLogin without-password
PermitRootLogin yes

重启ssh

/etc/init.d/ssh restart

到此就可以啦

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!