Posted on 2020年9月29日 by Hana 将/etc/ssh/sshd_config中的Port 22行,改为需要的端口号。若系统启用了防火墙,别忘了将新的端口排除例外后,再重启机器。 vim /etc/ssh/sshd_config