VPS/lnmp 修改SSH端口号 黑阔太多,不得不防. vi /etc/ssh/sshd_config 修改Port 22为任意数(小于1w)。 接下来重启SSH centos: service sshd restart debian: /etc/init.d/ssh restart