出现这个错误一般是sshd服务没有开启

(sshd服务是linux下的远程连接服务,默认端口号为22)

首先查看ssh服务是否安装在服务器上:rpm -qa|grep ssh

远程连接Linux系统出现Network error: Connection refused

 

 

如果安装了可以在虚拟机查看sshd服务是否开启:systemctl status sshd.service

远程连接Linux系统出现Network error: Connection refused

 

 如果没有开启就可以启动:systemctl start sshd.service

并设置为开机启动:systemctl enable sshd.service

查看ssh使用的22端口有没有被enable:netstat -an|grep 22

远程连接Linux系统出现Network error: Connection refused

 

 补充:windows系统的远程连接服务端口号为3389

相关文章:

  • 2021-07-18
  • 2021-04-21
  • 2022-12-23
  • 2021-12-12
  • 2021-07-11
  • 2021-10-27
猜你喜欢
  • 2021-06-01
  • 2022-12-23
  • 2021-08-31
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
相关资源
相似解决方案