五、修改linux的ssh连接端口
1、编辑sshd_config配置文件
# vim /etc/ssh/sshd_config
2、修改配置文件中的端口
## 2、找到#Port 22,默认是注释掉的,先把前面的#号去掉,再插入一行设置成你想要的端口号,不要跟现有端口号重复
# If you want to change the port on a SELinux system, you have to tell
# SELinux about this change.
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
#
##Port 22
Port 68
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
3、重启sshd服务
# systemctl restart sshd.service