Skip to content

Commit c1ebc5f

Browse files
pogobananeMic92
authored andcommitted
nixos-remote: use installed ssh key also for rsync
1 parent 74c8547 commit c1ebc5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ if [[ -n ${extra_files-} ]]; then
308308
if [[ -d $extra_files ]]; then
309309
extra_files="$extra_files/"
310310
fi
311-
rsync -rlpv -FF -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
311+
rsync -rlpv -FF -e "ssh -i \"$ssh_key_dir\"/nixos-remote -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
312312
fi
313313

314314
ssh_ <<SSH

0 commit comments

Comments
 (0)