Ubuntu secuerCRT连接失败,The remote system refused the connection.

新安装的ubuntu系统,securtCRT连接失败,出现下面结果,这是因为ubuntu没有安装工具。

The remote system refused the connection.

 

解决办法:

1、安装 ssh

$ sudo apt-get install ssh

 

2、安装 ssh 服务端

$ sudo apt-get install openssh-server

 

3、安装 ssh 客户端

$ sudo apt-get install openssh-client

 

4、重新启动 ssh

$ sudo /etc/init.d/ssh restart

 

 5、确认 ssh 已启动

$ netstat -tlp

有下面一行表示 ssh 已启动

tcp6    0    0 [::]:ssh    [::]:*    LISTEN    -

 

6、获取当前 IP 地址

$ ifconfig eth0

 

此时可以用获取到的 IP 在secureCRT中进行连接。

posted @ 2018-02-04 15:00  LeeAaron  阅读(1040)  评论(0编辑  收藏  举报