ubuntu 虚拟机无法使用putty连接 Network error: Connection refused解决方法

 

1、ubuntu 虚拟机无法使用putty连接

 

 

2、检查是否安装了ssh服务

ps -e | grep ssh

 

 

 说明没有安装ssh服务。

 

3、安装ssh服务

sudo apt-get install openssh-server

 

 说明安装正常。

 

4、检查ssh服务

ps -e | grep ssh

 

说明服务正常。 

 

也可以使用如下命令检测ssh服务状态:

/etc/init.d/ssh status

或者:

service ssh status

 

 说明ssh服务正常。

 

5、putty连接测试

 

 可以正常连接了。

 

6、当前系统

hostnamectl

 

posted @ 2022-05-18 23:28  小鲨鱼2018  阅读(1243)  评论(0编辑  收藏  举报