File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -120,14 +120,11 @@ example uses a local directory on the source machine.
120
120
121
121
### 6. Connectivity to the Target Machine
122
122
123
- On the target machine, make sure you have access as root via ssh by adding your
124
- SSH key to the file ` authorized_keys ` in the directory ` /root/.ssh `
125
-
126
- Optionally, bootstrapping can also be performed through password login. For
127
- example through the ` image-installer-* ` provided by
128
- ` nix-community/nixos-images ` . Assign your password to the ` SSH_PASS ` environment
129
- variable and specify ` --env-password ` as an additional command line option. This
130
- will provide ` ssh-copy-id ` with the required password.
123
+ ** nixos-anywhere** will create a temporary SSH key to use for the installation.
124
+ If your SSH key is not found, you will be asked for your password. If you are
125
+ using a non-root user, you must have access to sudo without a password. To avoid
126
+ SSH password prompts, set the ` SSHPASS ` environment variable to your password
127
+ and add ` --env-password ` to the ` nixos-anywhere ` command.
131
128
132
129
### 7. (Optional) Test your NixOS and Disko configuration
133
130
You can’t perform that action at this time.
0 commit comments