修改ssh远程登录配置

cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ori  #更改配置前进行备份,是
vim /etc/ssh/sshd_config  #编辑sshd_config
###by H0f 2018-03-13###
Port 2222                 默认端口
PermitRootlogin no          不允许远程root登录
PermitEmptyPasswords no 不允许空密码
UseDNS no                对远程主机名反向解析
GSSAPIAuthentication no  Linux远程连接慢解决方案

 查看本机连接情况:
 netstat -an|grep 10.104.11.107

原文地址:https://www.cnblogs.com/someone9/p/8565108.html