The remote system refused the connection问题解决


正常的情况:

ifconfig
  
  
  • 1

Alt text

whoami
  
  
  • 1

Alt text

ps -e | grep ssh
  
  
  • 1

Alt text


secureCRT软件

Alt text

Alt text

Alt text

Alt text


不正常的情况:The remote system refused the connection.

如果你遇到这个问题,说明你的Linux系统里面没有安装openssh-server

sudo apt-get install openssh-server
  
  
  • 1
aobosir@ubuntu:~$ ps -e | grep ssh
 3834 ?        00:00:00 sshd
  
  
  • 1
  • 2

执行完下面的命令,系统会自动注销(Logout)。

ssh-agent restart
# 已经没有这个命令了。替代的方法就是:重启系统或者注销系统。
  
  
  • 1
  • 2

现在查看一下,现在就可以进入了正常使用的状态。

aobosir@ubuntu:~$ ps -e | grep ssh
 3834 ?        00:00:00 sshd
 4116 ?        00:00:00 ssh-agent
aobosir@ubuntu:~$ 
  
  
  • 1
  • 2
  • 3
  • 4

现在,我们在Windows系统这段使用SecureCRT软件连接这个Linux系统,就可以添加成功了。

连接成功之后,我们现在在SecureCRT软件连接的Linux系统终端中再次下面命令来查看当前运行着的ssh进程有哪些。(现在,我们已经可以在Windows端的SecureCRT软件里面控制Linux端了。)

ps -e | grep ssh
  
  
  • 1

查看Linux这端的当前进程:(正常你会看到下面的4个。(我也不知道是什么东西))

Alt text


如果还是不行,你就执行下面的命令:

ssh start
  
  
  • 1

我就不信现在还是不行,现在肯定是可以正常的连接了。

搞定


参考网站:http://blog.csdn.net/lifengxun20121019/article/details/13627757


请访问:http://www.aobosir.com/

猜你喜欢

转载自blog.csdn.net/super828/article/details/84332210
今日推荐