File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
telco-ran/configuration/machineconfigs/sshd Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ apiVersion : machineconfiguration.openshift.io/v1
2+ kind : MachineConfig
3+ spec :
4+ config :
5+ ignition :
6+ version : 3.1.0
7+ storage :
8+ files :
9+ - contents :
10+ # Top Priority SSHD Security Settings:
11+ # 1. Disable direct root SSH access - forces use of privilege escalation
12+ # PermitRootLogin no
13+ # 2. Disable password-based authentication - prevents brute-force, password spraying, credential stuffing
14+ # PasswordAuthentication no
15+ # PermitEmptyPasswords no
16+ # 3. Implement automatic session timeout after 5 minutes - prevents abandoned session hijacking
17+ # ClientAliveInterval 300
18+ # ClientAliveCountMax 0
19+ # 4. Enable public key authentication as primary method
20+ # PubkeyAuthentication yes
21+ source : data:,PermitRootLogin%20no%0APasswordAuthentication%20no%0APermitEmptyPasswords%20no%0AClientAliveInterval%20300%0AClientAliveCountMax%200%0APubkeyAuthentication%20yes%0A
22+ mode : 384
23+ overwrite : true
24+ path : /etc/ssh/sshd_config
25+ metadata :
26+ name : 75-sshd_config-high
27+ labels :
28+ machineconfiguration.openshift.io/role : worker
You can’t perform that action at this time.
0 commit comments