vim /etc/ssh/sshd_config
PermitRootLogin yes => PermitRootLogin no
PasswordAuthentication yes => PasswordAuthentication no
RSAAuthentication yes
PubkeyAuthentication yes systemctl restart sshd.service
netstat -tulnp|grep sshd
vim /etc/ssh/sshd_config
Port 22 => Port 20000
systemctl restart sshd.service
netstat -tulnp|grep sshd
vim /etc/ssh/sshd_config
#ClientAliveInterval 180 => ClientAliveInterval 180
#ClientAliveCountMax 3 => ClientAliveCountMax 3
systemctl restart sshd.service
netstat -tulnp|grep sshd

 

posted on 2017-05-22 12:08  芒果-Vic  阅读(1264)  评论(0编辑  收藏  举报