/etc/ssh/sshd_config

线上配置:

Port 49142                                 # 设置SSH监听端口
RSAAuthentication yes                      # 开启RSA密钥验证,只针对SSHv1
PubkeyAuthentication yes                   # 开启公钥验证
AuthorizedKeysFile .ssh/authorized_keys    # 设置公钥验证文件的路径
PasswordAuthentication no                  # 用来设置是否开启密码验证机制
UseDNS no   
原文地址:https://www.cnblogs.com/mingerlcm/p/9292355.html