Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sshd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tilman Vatteroth
sshd
Commits
0a08267f
Verified
Commit
0a08267f
authored
5 years ago
by
David Mehren
Browse files
Options
Downloads
Patches
Plain Diff
Update config to use upstreams order and add link to Mozilla guidelines
parent
2b949aaf
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/sshd_config.conf.j2
+16
-10
16 additions, 10 deletions
templates/sshd_config.conf.j2
with
16 additions
and
10 deletions
templates/sshd_config.conf.j2
+
16
−
10
View file @
0a08267f
# MANAGED BY ANSIBLE
# EVERY CHANGE WILL BE PURGED
{% for item in sshd_ports %}
Port {{ item }}
{% endfor %}
#AddressFamily any
{% for item in sshd_listen_addresses %}
ListenAddress {{ item }}
{% endfor %}
...
...
@@ -30,16 +26,26 @@ TCPKeepAlive yes
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
###### EVERYTHING BELOW IS SUGGESTED BY MOZILLA ######
LogLevel VERBOSE
######## EVERYTHING BELOW IS SUGGESTED BY MOZILLA #########
# See https://infosec.mozilla.org/guidelines/openssh.html #
# Supported HostKey algorithms by order of preference.
HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
Subsystem sftp /usr/lib/openssh/sftp-server -f AUTHPRIV -l INFO
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
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
# LogLevel VERBOSE logs user's key fingerprint on login. Needed to have a clear audit track of which key was using to log in.
LogLevel VERBOSE
# Log sftp level file access (read/write/etc.) that would not be easily logged otherwise.
Subsystem sftp /usr/lib/ssh/sftp-server -f AUTHPRIV -l INFO
# Use kernel sandbox mechanisms where possible in unprivileged processes
# Systrace on OpenBSD, Seccomp on Linux, seatbelt on MacOSX/Darwin, rlimit elsewhere.
UsePrivilegeSeparation sandbox
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment