[root@linux-node1 ~]# cp /etc/ssh/sshd_config{,.bak_$(date +%F)}
[root@linux-node1 ~]# vim /etc/ssh/sshd_config
Port 28888 #更改ssh远程连接端口
PermitRootLogin no #禁止 root 用户 ssh 远程登录
PermitEmptyPasswords no #禁止空密码登录
GSSAPIAuthentication no #为防止 GSSAPI 导致 SSH 连接变慢
UseDNS no #禁止使用 DNS
[root@linux-node1 ~]# cp /etc/ssh