sudo apt update sudo apt install openssh-server 安装sshsudo systemctl status ssh 确认是否运行sudo ufw allow ssh 在系统上启用了防火墙,确保打开SSH端口