# passwd //修改密码
# ssh -V
# vim /etc/ssh/sshd_config
# systemctl restart sshd
注意同时开启云服务器防火墙端口
# 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 10086
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
也可使用禁止密码登陆,只能使用密钥登陆