sshd_config 674 B

1234567891011121314151617181920212223242526
  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. AllowAgentForwarding no
  14. AllowTcpForwarding no
  15. GatewayPorts no
  16. X11Forwarding no
  17. PermitUserEnvironment no
  18. PermitTTY no
  19. PrintMotd no
  20. # TODO consider chroot