更新索引 sudo apt update 下载ssh sudo apt install openssh-server 查看状态 sudo systemctl status ssh 防火墙放 sudo ufw allow ssh