豆粑粑 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
妥了就。
安装好了,还是没法log in
解决方法:
原来新版本里面sshd_config里面有了限制
#vim /etc/ssh/sshd_config
# Authentication:
LoginGraceTime 120
#PermitRootLogin without-password #找到这里,把它注释
PermitRootLogin yes #改为yes然后重启ssh
StrictModes yes
页:
[1]