Mathematica中文论坛-非官方

标题: 豆粑粑 ubuntu 14.04 安装openssh-server 出错(无法安装) [打印本页]

作者: meatball1982    时间: 2017-1-3 09:47
标题: 豆粑粑 ubuntu 14.04 安装openssh-server 出错(无法安装)
DingLin要ssh到我的机器上。
但我只有ssh的client端,没有server。
根据:
http://blog.csdn.net/zht666/article/details/9340633
安装
sudo apt-get install openssh-server

出错
openssh-server : Depends: openssh-client (= 1:6.6p1-2ubuntu1) but 1:6.6p1-2ubuntu2 is installed.

安不了。
根据
http://askubuntu.com/questions/546983/ssh-installation-errors
的7楼
sudo aptitude install openssh-client=1:6.6p1-2ubuntu1
然后,
sudo apt-get install openssh-server
妥了就。




作者: meatball1982    时间: 2017-1-21 11:40

安装好了,还是没法log in
解决方法:

原来新版本里面sshd_config里面有了限制

#vim /etc/ssh/sshd_config


# Authentication:
LoginGraceTime 120
#PermitRootLogin without-password    #找到这里,把它注释
PermitRootLogin yes                  #改为yes  然后重启ssh
StrictModes yes





欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/) Powered by Discuz! X3.2