ubuntu安装ssh失败

老子叫甜甜 提交于 2020-03-12 21:36:15

错误原因

The following packages have unmet dependencies:
 openssh-server : Depends: openssh-client (= 1:6.6p1-2ubuntu2.8) but 1:7.2p2-4ubuntu1 is to be installed
                  Recommends: ncurses-term but it is not going to be installed
                  Recommends: ssh-import-id but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

执行 apt-get install openssh-client=1:6.6p1-2ubuntu2.8
再安装
apt-get install openssh-server
成功了。

 

 启动命令

/etc/init.d/ssh start

重启命令

/etc/init.d/ssh restart

停止命令

/etc/init.d/ssh stop

 

判断是否有启动

ps -e|grep ssh

 

链接其他电脑

ssh 用户名@ip地址

输入密码则进入,输入exit退出

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