请选择 进入手机版 | 继续访问电脑版

FreeBSD中文论坛

 找回密码
 立即注册
搜索
热搜: BSD FreeBSD Unix
查看: 251|回复: 0

Freebsd的ssh配置

[复制链接]

46

主题

50

帖子

230

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
230
发表于 2021-9-27 14:08:01 | 显示全部楼层 |阅读模式
命令:
  1. /etc/rc.d/sshd start , /etc/rc.d/sshd restart
复制代码
SSH配置文件:
  1. root@freebsd:~ # cat /etc/ssh/sshd_config
  2. # THIS FILE IS AUTOMATICALLY GENERATED BY PUPPET.
  3. # DO NOT EDIT THIS FILE.

  4. # 1. Basic
  5. Port 32200
  6. Protocol 2


  7. # 2. Authentication
  8. HostKey /etc/ssh/ssh_host_rsa_key
  9. HostKey /etc/ssh/ssh_host_dsa_key

  10. KeyRegenerationInterval 3600
  11. ServerKeyBits 768
  12. UsePrivilegeSeparation yes
  13. LoginGraceTime 120

  14. PermitRootLogin no
  15. StrictModes yes

  16. RSAAuthentication yes
  17. PubkeyAuthentication yes
  18. PermitEmptyPasswords no
  19. ChallengeResponseAuthentication no
  20. PasswordAuthentication no

  21. IgnoreRhosts yes
  22. RhostsRSAAuthentication no
  23. HostbasedAuthentication no


  24. # 3. Features
  25. UseDNS no
  26. X11Forwarding yes
  27. X11DisplayOffset 10
  28. PrintMotd no
  29. PrintLastLog yes
  30. TCPKeepAlive yes
  31. AcceptEnv LANG LC_*


  32. # 4. Logging
  33. SyslogFacility AUTH
  34. LogLevel INFO


  35. # 5. x509
  36. Subsystem sftp /usr/libexec/sftp-server
  37. #CACertificateFile /etc/ssh/ca/ca.cer
复制代码


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|FreeBSD中文论坛 ( 豫ICP备2021022809号-1 )

GMT+8, 2021-12-7 19:35 , Processed in 0.016596 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表