Skip to content

Commit

Permalink
Workaround scp behaviour in OpenSSH 9.0
Browse files Browse the repository at this point in the history
scp in OpenSSH 9 now uses SFTP by default, which breaks the Packer /
Ansible / SSH Proxy interaction

See hashicorp/packer-plugin-ansible#100
And hashicorp/packer#11783

Adding the `-O` flag to  the `scp` command forces the old protocol to be
used.
  • Loading branch information
yankcrime authored and mitch000001 committed Jan 3, 2023
1 parent f9a98b4 commit cf3596a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions images/capi/packer/qemu/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"KUBEVIRT={{user `kubevirt`}}"
],
"extra_arguments": [
"--scp-extra-args", "'-O'",
"--extra-vars",
"{{user `ansible_common_vars`}}",
"--extra-vars",
Expand Down Expand Up @@ -99,6 +100,7 @@
"KUBEVIRT={{user `kubevirt`}}"
],
"extra_arguments": [
"--scp-extra-args", "'-O'",
"--extra-vars",
"{{user `ansible_common_vars`}}",
"--extra-vars",
Expand Down

0 comments on commit cf3596a

Please sign in to comment.