Skip to content
Snippets Groups Projects
Commit 53aab7b8 authored by Rob Kooper's avatar Rob Kooper
Browse files

Merge branch 'SECURITY-1719/ssh-ncsa-only' into 'main'

Add sshd conf to accept only NCSA-specific IPs when ncsa_security is enabled

See merge request !7
parents 80075b79 26b5f061
No related branches found
No related tags found
1 merge request!7Add sshd conf to accept only NCSA-specific IPs when ncsa_security is enabled
......@@ -41,6 +41,38 @@ timezone: America/Chicago
# files to be created on the system
write_files:
%{ if ncsa_security }
- path: /etc/ssh/sshd_config.d/50-ncsa-only.conf
permissions: "0644"
owner: root:root
content: |
# Disable all authentication modes later to be enabled as needed
# GSSAPI is enabled due to bug Redhat Bugzilla #1580017
ChallengeResponseAuthentication no
GSSAPIAuthentication yes
HostbasedAuthentication no
KbdInteractiveAuthentication no
KerberosAuthentication no
PasswordAuthentication no
PubkeyAuthentication no
# Allow any NCSA IP
Match Address "141.142.0.0/16"
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
AuthenticationMethods publickey
# Qualys Scanner
Match User qualys
AllowGroups qualys
AllowUsers qualys@141.142.148.51
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
AuthenticationMethods publickey
Banner none
MaxSessions 10
MaxAuthTries 10
%{ endif }
%{ if taiga_enabled ~}
- path: /etc/fstab
permissions: "0644"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment