vim /etc/ssh/sshd_config Port 2222 sudo ufw allow 2222/tcp systemctl restart ssh 或者 service ssh restart