-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update and add annotations to sshd config for servers #5666
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,30 @@ Port 22 | |
ListenAddress {{ ssh_listening_address }}:22 | ||
Protocol 2 | ||
HostKey /etc/ssh/ssh_host_rsa_key | ||
HostKey /etc/ssh/ssh_host_dsa_key | ||
HostKey /etc/ssh/ssh_host_ecdsa_key | ||
HostKey /etc/ssh/ssh_host_ed25519_key | ||
|
||
# Enforce privilege separation by creating unprivileged child process | ||
UsePrivilegeSeparation yes | ||
KeyRegenerationInterval 3600 | ||
ServerKeyBits 4096 | ||
|
||
# Logging options | ||
|
||
SyslogFacility AUTH | ||
LogLevel INFO | ||
|
||
# Authentication options | ||
|
||
LoginGraceTime 120 | ||
PermitRootLogin no | ||
StrictModes yes | ||
RSAAuthentication yes | ||
PubkeyAuthentication yes | ||
PasswordAuthentication no | ||
# Only users in the ssh group to authenticate | ||
AllowGroups ssh | ||
# Don't use host-based authentication | ||
IgnoreRhosts yes | ||
RhostsRSAAuthentication no | ||
HostbasedAuthentication no | ||
|
@@ -22,20 +34,33 @@ ChallengeResponseAuthentication no | |
KerberosAuthentication no | ||
KerberosGetAFSToken no | ||
GSSAPIAuthentication no | ||
X11Forwarding no | ||
X11DisplayOffset 10 | ||
PrintMotd no | ||
PrintLastLog yes | ||
TCPKeepAlive yes | ||
AcceptEnv LANG LC_* | ||
UsePAM no | ||
UseDNS no | ||
|
||
# Cipher selection | ||
|
||
Ciphers [email protected],[email protected],[email protected],aes256-ctr,aes128-ctr | ||
# Don't use SHA1 for kex | ||
KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256 | ||
# Don't use SHA1 for hashing, don't use encrypt-and-MAC mode | ||
MACs [email protected],[email protected],[email protected] | ||
|
||
# Network | ||
|
||
ClientAliveInterval 300 | ||
ClientAliveCountMax 0 | ||
Ciphers [email protected],aes256-ctr,[email protected] | ||
KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256 | ||
MACs hmac-sha2-256,hmac-sha2-512 | ||
# Do not allow remote port forwarding to bind to non-loopback addresses | ||
GatewayPorts no | ||
AllowGroups ssh | ||
# DisableX11 and agent forwarding, tunnelling | ||
AllowTcpForwarding no | ||
PasswordAuthentication no | ||
AllowAgentForwarding no | ||
PermitTunnel no | ||
X11Forwarding no | ||
X11DisplayOffset 10 | ||
|
||
# Misc configuration | ||
|
||
PrintMotd no | ||
PrintLastLog yes | ||
TCPKeepAlive yes | ||
AcceptEnv LANG LC_* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need
[email protected]
?chacha20
is specially being used from the cheap phones which does not have good hardware. And our users will use Tails on proper hardware to ssh.