复制代码
1
2ps -e|grep ssh
显示sshd,说明有ssh
sudo apt-get install openssh-server
安装openssh-server,如果顺利的话会安装成功,如果遇到以下问题:
openssh-server : Depends: openssh-client (= 1:6.6p1-2ubuntu2.8)
Recommends: ssh-import-id but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
原因如下:
这是因为,openssh-server是依赖于openssh-clien的,那ubuntu不是自带了openssh-client吗?
原由是自带的openssh-clien与所要安装的openssh-server所依赖的版本不同,这里所依赖的版本是:
1:6.6p1-2ubuntu2.8
所以要安装对应版本的openssh-clien,来覆盖掉ubuntu自带的
sudo apt-get install openssh-client=1:6.6p1-2xx
git远程登录
复制代码
1
2
3ssh username@host
最后
以上就是魁梧大象最近收集整理的关于ubuntu安装ssh的全部内容,更多相关ubuntu安装ssh内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复