来自于旧站的重置文章。
前言
今天重新安装一个pi的时候,发现安装了ufw,并且打开了port 22之后,还是会显示ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection refused,不知道为什么,结果发现大概原因是因为没有安装openssh-server。
正文
根据《ssh: connect to host myremotehost.com port 22: Connection refused》,安装openssh-server,并且开启即可。
1. 安装
sudo apt install openssh-server2. 启动服务
sudo service ssh start总结
就是酱紫~!
参考
[1] ssh: connect to host myremotehost.com port 22: Connection refused