当前位置:网站首页>Solve the problem that the virtual machine cannot be remotely connected through SSH service

Solve the problem that the virtual machine cannot be remotely connected through SSH service

2022-07-04 23:16:00 anieoo

I'm going through vscode Of ssh Service connection ubuntu When , Report errors :

ssh: connect to host port 22: Connection refused

Here's the solution :

One 、 install openssh-server service

sudo apt-get install openssh-server

Two 、 Install firewall

sudo apt-get install ufw

3、 ... and 、 Account opening firewall

sudo ufw enable

Four 、 Firewall permission 22 The port is open to the outside world

sudo ufw allow 22 
原网站

版权声明
本文为[anieoo]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207042259582731.html