sshd_config 716 B

123456789101112131415161718192021222324252627
  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. PubkeyAuthentication yes
  10. PasswordAuthentication no
  11. StrictModes no
  12. # separated by spaces
  13. AllowUsers _
  14. ForceCommand /bin/false
  15. AllowAgentForwarding no
  16. AllowTcpForwarding all
  17. GatewayPorts no
  18. PermitTunnel no
  19. X11Forwarding no
  20. PermitUserEnvironment no
  21. PermitTTY no
  22. PrintMotd no