Skip to content
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

SSH auth method no longer works #6274

Closed
3 tasks done
sk4zuzu opened this issue Jul 17, 2023 · 0 comments · Fixed by OpenNebula/docs#2683 or OpenNebula/docs#2684
Closed
3 tasks done

SSH auth method no longer works #6274

sk4zuzu opened this issue Jul 17, 2023 · 0 comments · Fixed by OpenNebula/docs#2683 or OpenNebula/docs#2684

Comments

@sk4zuzu
Copy link
Contributor

sk4zuzu commented Jul 17, 2023

Description
Unable to create an user with the ssh auth method.

To Reproduce
Follow the documentation.

$ oneuser create johndoe --ssh --read-file /tmp/pub_key
[one.user.allocate] Invalid password, character ' ' is not allowed.
$ oneuser create johndoe --ssh --key /tmp/id_rsa
Neither PUB key nor PRIV key: unsupported

Expected behavior
User should be created.

Details

  • Affected Component: CLI
  • Hypervisor: N/A
  • Version: 6.6 (but it's very much possible older versions suffer from this as well)

Additional context
This issue seems to be caused by ssh-keygen producing -----BEGIN OPENSSH PRIVATE KEY----- instead of -----BEGIN RSA PRIVATE KEY----- unless the -m pem option is used. We should probably convert the key on-the-fly -> I think net-ssh or similar lib could help here. 🤔

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
@tinova tinova added this to the Release 6.8 milestone Jul 17, 2023
@rsmontero rsmontero assigned rsmontero and dann1 and unassigned rsmontero Jul 17, 2023
dann1 added a commit to dann1/docs that referenced this issue Sep 14, 2023
dann1 added a commit to dann1/docs that referenced this issue Sep 14, 2023
@tinova tinova closed this as completed Sep 18, 2023
tinova added a commit to OpenNebula/docs that referenced this issue Sep 18, 2023
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
tinova added a commit to OpenNebula/docs that referenced this issue Sep 18, 2023
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
@tinova tinova reopened this Sep 19, 2023
@tinova tinova closed this as completed Sep 20, 2023
@tinova tinova reopened this Sep 20, 2023
@tinova tinova closed this as completed Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment