@@ -21,8 +21,9 @@ You will need:
21
21
performed
22
22
- A disk configuration containing details of the file system that will be
23
23
created on the new server.
24
- - A target machine, reachable via SSH, with your SSH public key deployed and the
25
- privilege to either login directly as root or to use password-less sudo.
24
+ - A target machine that is reachable via SSH, either using keys or a password,
25
+ and the privilege to either log in directly as root or a user with
26
+ password-less sudo.
26
27
27
28
** nixos-anywhere** doesn’t need to be installed. You can run it directly from
28
29
[ the Github repository.] ( https://github.com/nix-community/nixos-anywhere )
@@ -103,14 +104,14 @@ below.
103
104
simply reference your local directory when you run ** nixos-anywhere** . This
104
105
example uses a local directory on the source machine.
105
106
106
- 6 . On the target machine, make sure you have access as root via ssh by adding
107
- your SSH key to the file ` authorized_keys ` in the directory ` /root/.ssh `
107
+ 6 . ** Connectivity to the Target Machine** :
108
108
109
- Optionally, bootstrapping can also be performed through password login. For
110
- example through the ` image-installer-* ` provided by
111
- ` nix-community/nixos-images ` . Assign your password to the ` SSH_PASS `
112
- environment variable and specify ` --env-password ` as an additional command
113
- line option. This will provide ` ssh-copy-id ` with the required password.
109
+ ** nixos-anywhere** will create a temporary SSH key to use for the
110
+ installation. If your SSH key is not found, you will be asked for your
111
+ password. If you are using a non-root user, you must have access to sudo
112
+ without a password. To avoid SSH password prompts, set the ` SSHPASS `
113
+ environment variable to your password and add ` --env-password ` to the
114
+ ` nixos-anywhere ` command.
114
115
115
116
7 . (Optional) Test your nixos and disko configuration:
116
117
0 commit comments