67: nixos-remote: use installed ssh key also for rsync r=Mic92 a=Mic92



Co-authored-by: Pogobanane <aenderboy@gmx.de>
This commit is contained in:
bors[bot] 2023-02-09 09:33:38 +00:00 committed by GitHub
commit 9b1ebfc3df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -308,7 +308,7 @@ if [[ -n ${extra_files-} ]]; then
if [[ -d $extra_files ]]; then
extra_files="$extra_files/"
fi
rsync -rlpv -FF -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
rsync -rlpv -FF -e "ssh -i \"$ssh_key_dir\"/nixos-remote -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" "$extra_files" "${ssh_connection}:/mnt/"
fi
ssh_ <<SSH