wfvm: allow network access in SSH demo

This commit is contained in:
Sebastien Bourdeauducq 2020-06-15 20:09:29 +08:00
parent 0ba8000660
commit 5ab186e3dc

View File

@ -6,6 +6,7 @@ in
wfvm.utils.wfvm-run { wfvm.utils.wfvm-run {
name = "demo-ssh"; name = "demo-ssh";
image = import ./demo-image.nix { inherit pkgs; }; image = import ./demo-image.nix { inherit pkgs; };
isolateNetwork = false;
script = '' script = ''
${pkgs.sshpass}/bin/sshpass -p1234 -- ${pkgs.openssh}/bin/ssh -p 2022 wfvm@localhost -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ${pkgs.sshpass}/bin/sshpass -p1234 -- ${pkgs.openssh}/bin/ssh -p 2022 wfvm@localhost -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
''; '';