Fix ssh host key permissions on Oracle Linux (#120)

This commit is contained in:
David Morgan 2022-11-15 03:31:49 +00:00 committed by GitHub
parent ff9e190e8d
commit f4e57410dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -276,6 +276,10 @@ checkEnv() {
req ip || { echo "ERROR: Missing ip"; return 1; }
req awk || { echo "ERROR: Missing awk"; return 1; }
req cut || req df || { echo "ERROR: Missing coreutils (cut, df)"; return 1; }
# On some versions of Oracle Linux these have the wrong permissions,
# which stops sshd from starting when NixOS boots
chmod 600 /etc/ssh/ssh_host_*_key
}
infect() {