ubuntu: Network error: Connection refused

 

1、问题: Network error: Connection refused

 

 

2、解决方法

root@DESKTOP-1N42TVH:~# /etc/init.d/ssh status
 * sshd is not running

 

 

3、

root@DESKTOP-1N42TVH:~# /etc/init.d/ssh restart
 * Restarting OpenBSD Secure Shell server sshd                                                                                                                                              [ OK ]
root@DESKTOP-1N42TVH:~# /etc/init.d/ssh status
 * sshd is running

 

4、测试,可以正常登录了

 

posted @ 2022-04-23 22:54  小鲨鱼2018  阅读(525)  评论(0编辑  收藏  举报