1,SSH访问配置文件为 /etc/ssh/sshd_config 。
#vi /etc/ssh/sshd_config
查找文件中到 Port=22,改为其他数字port=2222

 2,修改保存后,重启SSH服务:
    service sshd restart

发表评论