From d268883ca2c31199d63107c6a3c7f11fa8b16a1e Mon Sep 17 00:00:00 2001 From: Stephan Maka Date: Tue, 23 Apr 2019 22:33:06 +0200 Subject: [PATCH] windows: avoid ~/.ssh error messages (attempt 2) --- artiq/windows/qemu.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/windows/qemu.nix b/artiq/windows/qemu.nix index a4f11c2..630ce62 100644 --- a/artiq/windows/qemu.nix +++ b/artiq/windows/qemu.nix @@ -31,7 +31,8 @@ let argStr = builtins.concatStringsSep " " (args ++ extraArgs); 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: '' echo ssh windows '${cmd}' ${sshpass}/bin/sshpass -p${sshPassword} -- \