SecureCRT 连接Ubuntu 16.04出现Connection timed out 的问题

来源:互联网 发布:我的世界,java.net 编辑:程序博客网 时间:2024/05/29 03:34

系统为ubuntu 16.04, 在准备通过SecureCRT连接系统时,出现Connection timed out 的问题。

 

1.首先输入ssh localhost 指令查看ssh是否安装和启动,结果发现connect to host localhost port 22:Connection refused。造成这个错误的原因有可能是ssh-server未安装或者未启动。

2.运行ps -e | grep ssh指令查看是否有sshd进程,发现 1977 ? 00:00:00 ssh-agent 没有sshd进程。

3.输入 sudo apt-get install openssh-server安装server,Ubuntu下自动安装依赖项

4.直接用SecureCRT连系统成功

阅读全文
0 0