LnL7 / nix-docker

Docker images for the Nix package manager
MIT License
288 stars 41 forks source link

macOS updates delete /var/root/.ssh #40

Open lrworth opened 2 years ago

lrworth commented 2 years ago

I followed the instructions to add an entry to /var/root/.ssh/config, which worked until a macOS system update (to 12.4) deleted that file.

It's infeasible for me to reproduce this problem, but for now I've added the entry to /etc/ssh/ssh_config.d/nix-docker and will check this issue again for the next few system updates.

Please comment on this issue if:

(If the latter is true, we should update the README)

lrworth commented 2 years ago

Also, I needed to add StrictHostKeyChecking accept-new for nix-docker, because the host was not listed in any known_hosts file. Unsure what is actually best practice here.