elitak / nixos-infect

[GPLv3+] install nixos over the existing OS in a DigitalOcean droplet (and others with minor modifications)
GNU General Public License v3.0
1.32k stars 215 forks source link

Fix ssh host key permissions on Oracle Linux #120

Closed deejayem closed 1 year ago

deejayem commented 1 year ago

When running nixos-infect on Oracle Linux 8 (on Oracle Cloud, with both AMD and ARM), I found that sshd refused to start when NixOS booted, because the private ssh host keys were 640 instead of 600 (i.e. -rw-r----- instead of -rw-------.

With this patch, I was able to run nixos-infect on Oracle Linux, and connect via ssh after rebooting.