/etc/ssh/sshd_config

 

 

线上配置:

Port 49142                                 # 设置SSH监听端口
RSAAuthentication yes                      # 开启RSA密钥验证,只针对SSHv1
PubkeyAuthentication yes                   # 开启公钥验证
AuthorizedKeysFile .ssh/authorized_keys    # 设置公钥验证文件的路径
PasswordAuthentication no                  # 用来设置是否开启密码验证机制
UseDNS no   

 

posted @ 2018-07-11 01:12  minger_lcm  阅读(231)  评论(0编辑  收藏  举报