secureCRT The remote system refused the connection.解决办法


使用远程登录工具SecureCRT登陆ubuntu的时候遇到了这个问题:

secureCRT The remote system refused the connection

这个问题的原因是是Ubuntu没有安装openssh。SSH分客户端openssh-client和服务端openssh-server,openssh-client是客户端,openssh-server是服务端。当然判断机器是否安装ssh服务,可以使用如下命令:

ssh localhost

若反馈:
ssh: connect to host localhost port 22: Connection refused

说明并没有安装。所以在终端输入:

sudo apt-get install openssh-client

安装openssh-client

sudo apt-get install openssh-server

安装openssh-server。

安装完后,终端输入:

 

ps -e|grep ssh  
若反馈:

1418 ?        00:00:00 sshd

说明ssh-server已经启动了。当然也可以键入:

service ssh start

来启动服务。此时再连接CRT就会发现已经解决了。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM