ubuntu 17.04 下安装openssh-server报错

前端之家收集整理的这篇文章主要介绍了ubuntu 17.04 下安装openssh-server报错前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

执行 sudo apt install openssh-server 会报一下错误 @H_403_2@

需要我们安装openssh-client,其实系统里面已经有啦openssh-client @H_403_2@

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

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

再执行

  1. sudo apt install openssh-server

继续配置openssh

  1. sudo gedit /etc/ssh/sshd_config

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

  1. #PermitRootLogin without-password
  2. PermitRootLogin yes

重启ssh

  1. /etc/init.d/ssh restart

到此就可以啦

猜你在找的Ubuntu相关文章