ssh: connect to host localhost port 22: Connection refused
来源:互联网 发布:淘宝上的血滴子是什么 编辑:程序博客网 时间:2024/05/19 09:15
drguo@drguo3:~/.ssh$ ssh localhostssh: connect to host localhost port 22: Connection refused
drguo@ubuntu:~$ sudo apt-get install openssh-server正在读取软件包列表... 完成正在分析软件包的依赖关系树 正在读取状态信息... 完成 有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件包尚未被创建或是它们已被从新到(Incoming)目录移出。下列信息可能会对解决问题有所帮助:下列软件包有未满足的依赖关系: openssh-server : 依赖: openssh-client (= 1:5.9p1-5ubuntu1.8) 推荐: ssh-import-id 但无法安装它E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
搜到这个:http://www.cnblogs.com/mliudong/p/4094519.html
来安装openssh-server,如果顺利的话会安装成功,如果遇到
1
2
3
4
5
6
7
8
9
10
11
12
$
sudo
apt-get
install
openssh-server
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:
下列软件包有未满足的依赖关系:
openssh-server : 依赖: openssh-client (= 1:6.6p1-2ubuntu1)
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
这是因为,openssh-server是依赖于openssh-clien的,那ubuntu不是自带了openssh-client吗?原由是自带的openssh-clien与所要安装的openssh-server所依赖的版本不同,这里所依赖的版本是
1
1:6.6p1-2ubuntu1
所以要安装对应版本的openssh-clien,来覆盖掉ubuntu自带的
$ sudo apt-get install openssh-client=1:6.6p1-2ubuntu1正在读取软件包列表... 完成正在分析软件包的依赖关系树 正在读取状态信息... 完成 建议安装的软件包: libpam-ssh keychain monkeysphere下列软件包将被【降级】: openssh-client
。。。。。。。。。。。。
然后下载openssh-server就可以了
0 0
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused
- cygwin ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- Ubuntu ssh: connect to host localhost port 22:Connection refused
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused
- Linux--ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused
- ssh: connect to host localhost port 22: Connection refused 问题
- ssh: connect to host localhost port 22: Connection refused 问题
- Windows7安装PADS2007详细步骤____亲自实验总结
- Wrapper class package.jaxws.methodName is not found. Have you run APT to generate them?解决方案
- 步伐
- Qt5.6+MinGW4.9.2+OpenCV3.1+Win10开发环境搭建
- [leetcode 75] Sort Colors-----------只有三种颜色的排序
- ssh: connect to host localhost port 22: Connection refused
- 源码解析ListView中的RecycleBin机制
- hdu 1677 Nested Dolls
- Nginx常用配置总结
- AJAX POST&跨域 解决方案 - CORS
- IO和NIO的区别
- ubuntu上安装opencc时总会报distribute的错误
- java垃圾回收机制
- poj 2411(压缩dp)