Linux 修改远程默认端口(22)

  1.     vim /etc/ssh/sshd_config
  2.     找到#Port 22一段,这里是标识默认使用22端口,修改为如下: Port 40022 然后保存退出。

  3.     service sshd restart 
原文地址:https://www.cnblogs.com/forthelichking/p/11818203.html