sshd_config 685 B

12345678910111213141516171819202122232425
  1. Protocol 2
  2. # LogLevel VERBOSE
  3. HostKey /etc/ssh/host_keys/rsa
  4. # https://cipherli.st/
  5. KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
  6. Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
  7. MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
  8. PermitRootLogin no
  9. PasswordAuthentication no
  10. StrictModes no
  11. # separated by spaces
  12. AllowUsers _
  13. ForceCommand /usr/bin/rrsync /data
  14. AllowAgentForwarding no
  15. AllowTcpForwarding no
  16. GatewayPorts no
  17. X11Forwarding no
  18. PermitUserEnvironment no
  19. PermitTTY no
  20. PrintMotd no