1.登录服务器,打开sshd_config文件 # vim /etc/ssh/sshd_config 2.找到#Port 22,默认是注释掉的,先把前面的#号去掉,再插入一行设置成你想要的端口号,注意不要跟现有端口号重复 # The strategy used for options in the default sshd_config shipped with# OpenSSH is to specify options with their default value where# poss…