docs typo: ssh-keyscan takes a hostname not user@host

Change-Id: Ib823165bcababed2808a602368d6ab57762a49b3
This commit is contained in:
Jade Lovelace
2025-11-28 12:06:20 +00:00
committed by jade
parent 94c9b43b4a
commit 0423f0ef38
@@ -41,7 +41,7 @@ contains Nix.
> If you are building via the Lix daemon (default on Linux and macOS), it is the Lix daemon user account (that is, `root`) that should have SSH access to a user (not necessarily `root`) on the remote machine.
>
> Furthermore, `root` needs to have the public host keys for the remote system in its `.ssh/known_hosts`.
> To add them to `known_hosts` for root, do `ssh-keyscan USER@HOST | sudo tee -a ~root/.ssh/known_hosts`.
> To add them to `known_hosts` for root, do `ssh-keyscan HOST | sudo tee -a ~root/.ssh/known_hosts`.
>
> If you cant or dont want to configure `root` to be able to access the remote machine, you can use a private Nix store instead by passing e.g. `--store ~/my-nix` when running a Nix command from the local machine.