aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8aa03aa..b00e196 100644
--- a/README.md
+++ b/README.md
@@ -87,6 +87,23 @@ not show up while the guest runs). Other modes: `mmap`, `readahead`,
The guest gets 2 CPUs and 1024 MiB unless told otherwise (`--vcpus N`,
1 to 32; `--mem-size MIB`).
+The guests run sshd. Its host key comes from the host at boot, so it's
+not in the store: `--ssh-host-key FILE`, by default
+`~/.local/share/run-firecracker-vm/ssh_host_ed25519_key`, created on first
+use, so all your guests have the same one, and one known_hosts line does:
+
+```sh
+echo "172.16.0.*,fdfc:fc::* $(cut -d' ' -f1,2 ~/.local/share/run-firecracker-vm/ssh_host_ed25519_key.pub)" >> ~/.ssh/known_hosts
+```
+
+Who may log in goes in a layer, e.g.:
+
+```nix
+{ users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAA..." ]; }
+```
+
+A guest on tap fctapN is 172.16.0.(N+2) (see `fc-egress vms`).
+
The guest's system can be built in layers, each a NixOS module on top of
the ones before (the first on top of the base system):