X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=sshd_config;h=47d857762fd8fd647763a2f2f38615279c872b78;hb=362e50fba3d66be6749c85b0ee2f720d0b53e486;hp=fe57dc6e733a7ed9471a6ea6768bedfc4913e1ef;hpb=c4e006fce61400b567d7c47e04a63c82e36ec5d6;p=config%2Fdotfiles.git diff --git a/sshd_config b/sshd_config index fe57dc6..47d8577 100644 --- a/sshd_config +++ b/sshd_config @@ -3,7 +3,7 @@ # Some options are set even if they are default to document that they are # important and to prevent upstream changes from affecting them. -# Copyright (C) 2013 Simon Ruderich +# Copyright (C) 2013-2014 Simon Ruderich # # This file is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,8 +25,14 @@ Port 22 # Only use protocol 2. Protocol 1 is insecure. (default) Protocol 2 -# Use privilege separation for increased security. -UsePrivilegeSeparation yes +# 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 # Don't use PAM because it may circumvent other authentication methods used # below (default). @@ -51,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