云服务器设置
1. sshd设置
a. 修改ssh端口
Port 89222
b. 禁止密码访问,上传公钥
PasswordAuthentication no
AuthorizedKeysFile .ssh/authorized_keys
c. 修改ssh连接断开时间 vim /etc/ssh/sshd_config
ClientAliveInterval 60
118 ClientAliveCountMax 86400
修改配置后重启sshd服务, systemctl restart sshd