-
Notifications
You must be signed in to change notification settings - Fork 330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Allow SSH authentication with RSA keys #387
feat: Allow SSH authentication with RSA keys #387
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change adequacy address each Linux distribution?
I need to do some testing. I think this is related to the OpenSSH version of the client. For example I have installed OpenSSH 9.1 at macOS, because I use a YubiKey for SSH via GPG. |
0d73819
to
743e00f
Compare
Could someone please check if this is still working with OpenSSH 8.x and on Windows? |
I’m not too worried about Windows as the Packer host since the project hasn’t tested with it in the past; however, that said I’m certainly willing to include coverage based on Windows 11 22H2. |
I just did an downgrade of OpenSSH and build an image for Ubuntu Server 22.04 LTS. Everything is working as expected.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Pass on Ubuntu 22.04 LTS: OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2 15 Mar 2022
- Fail on macOS Monterey (
12.6.1
): OpenSSH_8.6p1, LibreSSL 3.3.6
vsphere-iso.linux-photon: TASK [Gathering Facts] *********************************************************
vsphere-iso.linux-photon: fatal: [default]: FAILED! => {"msg": "failed to transfer file to /Users/johnsonryan/.<sensitive>/tmp/<sensitive>-local-689535utghcqo/tmpf7p_lub9 /home/<sensitive>/.<sensitive>/tmp/<sensitive>-tmp-1669845602.772087-68956-148654805544790/AnsiballZ_setup.py:\n\nscp: illegal option -- O\nusage: scp [-346ABCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]\n [-J destination] [-l limit] [-o ssh_option] [-P port]\n [-S program] source ... target\n"}
Need to test on Photon OS 4.0.
Dropped testing under the following in #393:
- Ubuntu 20.04 LTS
- macOS Big Sur (
11.x
)
Plan to test under - pending:
- macOS Ventura (
13.x
)
Interesting. I was using macOS Ventura, but did. an downgrade of OpenSSH to version 8.9. I think this is related to the version of OpenSSH and not the operating system. |
743e00f
to
75ebcc9
Compare
75ebcc9
to
2e0dd57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and verified with the latest pushed commits - LGTM! 🚀
Appreciate adding the Note to the README for OpenSSH >= 9.0
.
I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. |
Summary of Pull Request
Adds
HostKeyAlgorithms=+ssh-rsa
andPubkeyAcceptedKeyTypes=+ssh-rsa
as extra arguments for Ansible.This will set these parameters automatically instead of assuming that the user has read the current documented requirements.
Type of Pull Request
type/bug
type/feature
ortype/enhancement
type/docs
type/refactor
type/chore
Please describe:
Related to Existing Issues
Issue Number: N/A
Test and Documentation Coverage
I have tested this for Debian 11 and Ubuntu Server 22.04 LTS. VMware Photon OS 4 did not get pass the boot loader.
Breaking Changes?