X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=sshd_config;h=47d857762fd8fd647763a2f2f38615279c872b78;hb=b2a118a0ad79bcee7bd83925ac9df338d6087f2f;hp=28e246517a926146fac0f0b9da723a18d023473f;hpb=660c485b1a83ae0bbae28a09b983f11bd536fcf9;p=config%2Fdotfiles.git diff --git a/sshd_config b/sshd_config index 28e2465..47d8577 100644 --- a/sshd_config +++ b/sshd_config @@ -25,6 +25,11 @@ Port 22 # Only use protocol 2. Protocol 1 is insecure. (default) Protocol 2 +# Stronger algorithms. See ssh_config for details. +KexAlgorithms diffie-hellman-group-exchange-sha256 +Ciphers aes256-ctr +MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-512 + # Use privilege separation for increased security. "sandbox" applies # additional restrictions on the unprivileged process. UsePrivilegeSeparation sandbox @@ -52,8 +57,8 @@ StrictModes yes # Allow more sessions per network connection (e.g. from ControlMaster/-M). # When not enough sessions are available this message is sent by ssh: # "mux_client_request_session: session request failed: Session open refused by -# peer". Not necessary on all servers. -#MaxSessions 30 +# peer". +MaxSessions 30 # Don't accept any environment variables from the client (default). AcceptEnv