Skip to content

Commit 2991be5

Browse files
authored
Merge pull request #365 from sedlund/fix/SSH_PASS
correct SSHPASS variable
2 parents 759091c + fad2f02 commit 2991be5

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

docs/quickstart.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,11 @@ example uses a local directory on the source machine.
120120

121121
### 6. Connectivity to the Target Machine
122122

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.
131128

132129
### 7. (Optional) Test your NixOS and Disko configuration
133130

0 commit comments

Comments
 (0)