Skip to content

Commit

Permalink
feat: Allow SSH authentication with RSA keys if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoppe committed Nov 29, 2022
1 parent 84970d9 commit 0d73819
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,6 @@ Operating systems and versions tested with the project:
- Ubuntu Server 22.04 LTS and 20.04 LTS (`x86_64`)
- macOS Monterey and Big Sur (Intel)

> **Note**
>
> Update your `/etc/ssh/ssh_config` or `~/.ssh/ssh_config` to allow ssh authentication with RSA keys if you are using VMware Photon OS 4.0 or Ubuntu 22.04.
>
> Update to include the following:
>
> `HostKeyAlgorithms +ssh-rsa`
> `PubKeyAcceptedAlgorithms +ssh-rsa`
**Packer**:

- HashiCorp [Packer][packer-install] 1.8.4 or higher.
Expand Down
3 changes: 3 additions & 0 deletions builds/linux/debian/11/linux-debian.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ build {
"ANSIBLE_CONFIG=${path.cwd}/ansible/ansible.cfg",
"ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3"
]
ansible_ssh_extra_args = [
"-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa"
]
extra_arguments = [
"--extra-vars", "display_skipped_hosts=false",
"--extra-vars", "BUILD_USERNAME=${var.build_username}",
Expand Down
3 changes: 3 additions & 0 deletions builds/linux/photon/4/linux-photon.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ build {
"ANSIBLE_CONFIG=${path.cwd}/ansible/ansible.cfg",
"ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3"
]
ansible_ssh_extra_args = [
"-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa"
]
extra_arguments = [
"--extra-vars", "display_skipped_hosts=false",
"--extra-vars", "BUILD_USERNAME=${var.build_username}",
Expand Down
3 changes: 3 additions & 0 deletions builds/linux/ubuntu/22-04-lts/linux-ubuntu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ build {
ansible_env_vars = [
"ANSIBLE_CONFIG=${path.cwd}/ansible/ansible.cfg"
]
ansible_ssh_extra_args = [
"-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa"
]
extra_arguments = [
"--extra-vars", "display_skipped_hosts=false",
"--extra-vars", "BUILD_USERNAME=${var.build_username}",
Expand Down

0 comments on commit 0d73819

Please sign in to comment.