1
0
Fork 0

windows: avoid ~/.ssh error messages (attempt 2)

This commit is contained in:
Astro 2019-04-23 22:33:06 +02:00
parent 5a45bd26e4
commit d268883ca2
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@ let
argStr = builtins.concatStringsSep " " (args ++ extraArgs); argStr = builtins.concatStringsSep " " (args ++ extraArgs);
in "${qemu_kvm}/bin/qemu-system-x86_64 ${argStr}"; in "${qemu_kvm}/bin/qemu-system-x86_64 ${argStr}";
sshOpts = "-o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/dev/null"; # Pass empty config file to prevent ssh from failing to create ~/.ssh
sshOpts = "-F /dev/null -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=/dev/null";
ssh = cmd: '' ssh = cmd: ''
echo ssh windows '${cmd}' echo ssh windows '${cmd}'
${sshpass}/bin/sshpass -p${sshPassword} -- \ ${sshpass}/bin/sshpass -p${sshPassword} -- \