Vi /etc/ssh/sshd-config,进入该配置文件后保存就好了

【Linux 网维技术】3.linux修改远程端口