mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 16:45:28 +03:00
ignore host keys during ssh-copy-id also
This commit is contained in:
parent
f4235fead3
commit
9b6c503575
@ -101,7 +101,7 @@ fi
|
|||||||
|
|
||||||
# wait for machine to become reachable (possibly forever)
|
# wait for machine to become reachable (possibly forever)
|
||||||
if [ ${no_ssh_copy-n} != "y" ]; then
|
if [ ${no_ssh_copy-n} != "y" ]; then
|
||||||
until ssh-copy-id "$ssh_connection"; do sleep 5; done
|
until ssh-copy-id -o ConnectTimeout=10 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$ssh_connection"; do sleep 5; done
|
||||||
else
|
else
|
||||||
until ssh_ -o ConnectTimeout=10 -- exit 0; do sleep 5; done
|
until ssh_ -o ConnectTimeout=10 -- exit 0; do sleep 5; done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user