ssh: connect to host 192.168.28.160 port 22: Connection refused

By | 01月04日
Advertisement

我这里有两台机器A、B,B是安装在虚拟机里的debian系统,在B机器上可以使用ssh登录到A机器
但是在A上使用ssh命令登录B机器时提示错误:
ssh: connect to host 192.168.28.160 port 22: Connection refused
原来ssh分为ssh-client和ssh-server两部分,B设备只安装了ssh-client而没有安装ssh-server才导致上述问题。
解决方法:在B机器上安装ssh-server,apt-get install ssh-server
然后在A上执行ssh root@192.168.28.160却提示了另外一个waring:
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
在网上搜了一下发现出现这个warning是因为对端重新的ssh服务出现变动所致。
解决办法详见我的另外一篇文章,标题是: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

关于使用ssh出现的问题解决方法,这里推荐别人的一篇文章:
http://blog.csdn.net/feliciafay/article/details/6561414

Similar Posts:

  • ssh: connect to host 192.168.57.131 port 22: Conne

    文档背景: 重新克隆了一台centos机器,由于时间太久,已经忘了之前Xshell远程连接是如何配置的了.只记得,需要关闭防火墙.现将步骤整理如下: 操作步骤: 1.关闭防火墙 #查看防火墙状态 /etc/init.d/iptables status #关闭防火墙 service iptables stop 2.xshell中telnet主机 Xshell:\> telnet 192.168.57.131 22 Connecting to 192.168.57.131:22... Could n

  • ssh: connect to host 192.168.1.127 port 22: Operation timed out fatal: Could not

    参考: 1.http://stackoverflow.com/questions/13509293/git-fatal-could-not-read-from-remote-repository 第二个答案比较靠谱 1.Make sure you have correct url in .git/config url = git@github.com:username/repo.git If it's your first push, you'll need to set up correct

  • Linux服务器之间拷贝文件(提示connect to host localhost port 22: Connection refused lost )

    因服务器割接,所以我要将一台服务上的文件拷贝到另一台服务器上.我是Linux菜鸟就会一些简单命令.因两台服务器都在内网,所以我想使用scp命令,这里我前把命令贴出,下面在补上我遇到的问题. #第一种方式从本地拷贝到另一台服务器(A--->B) scp -P 13022 -r /home/cstdev/wom_20140609.sql cstdev@192.168.1.11:/home/cstdev/wom/ #----------------------------------------参数说

  • ssh: connect to host github.com port 22: Connection refused

    如果使用git远程推送时出现如下问题: [fulinux@ubuntu learngit]$ git push -u origin master ssh: connect to host github.com port 22: Connection refused fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository

  • vmware中的Ubuntu安装ssh全家桶(解决connect to host localhost port 22: Connection refused)

    网上查询过异常信息后得知系统需要安装ssh服务. 1.重现问题:ssh localhost 报错connect to host localhost port 22: Connection refused 2.查看是否已安装ssh:ps -ef|grep ssh 如果没有则需要安装. 3.尝试安装:sudo apt-get install openssh-server 这是在网上找到的解决办法,但是报错: 提示写着:需要下面几个包,openssh-server.openssh-client.ope

  • cygwin ssh: localhost port 22: Connection refused

    想在本机上搭建Hadoop的伪分布式运行环境,需要配置SSH. Cygwin安装的时候是带有OpenSSH的,之前会偶尔用他连接远程服务器.试了一下: $ssh localhost 提示:ssh: connect to localhost port 22: Connection refused. 纳闷,怎么连自己不行?想了一会才明白,原来Cygwin的OpenSSH安装后,默认的client端开启,服务器端没有配置. 那就来安装sshd吧. $ssh-host-config 本来一路输入yes就

  • Could not connect to '172.18.253.2' (port 22): Connection failed.

    cisco交换机SSH登陆故障 一.故障现象 使用SSH登陆交换机时,出现如下提示 Connecting to 172.18.253.2:22... Could not connect to '172.18.253.2' (port 22): Connection failed. 650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/88/4B/wKiom1ft2Fai2s0XAAAowKAsA6M326.jpg"

  • ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL

    当使用Mysql帐号远程登陆的时候,出现类似如下错误: ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL  解决办法: 1. 改表法(可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhos

  • scp登录The authenticity of host 192.168.0.xxx can't be established. 的问题

    scp登录The authenticity of host 192.168.0.xxx can't be established. 的问题 博客分类: Linux scp 1.txt root@192.168.1.25:/tmp The authenticity of host '192.168.1.25 (192.168.1.25)' can't be established. RSA key fingerprint is 6c:28:23:df:45:d5:c8:79:4d:9e:ed:f6

  • 解决ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server

    1. 改表法.可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%" mysql -u root -pvmwaremysql>use mysql;mysql>update user set host = '%' where

Tags: