mirror of
https://github.com/ovh/the-bastion.git
synced 2026-05-09 16:35:33 +02:00
[GH-ISSUE #313] Issue with adding ed25519 keys #81
Labels
No labels
answered
bug
documentation
enhancement
enhancement
feature
feature
kept-open-for-info
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/the-bastion#81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @asanz-mrmilu on GitHub (Jun 30, 2022).
Original GitHub issue: https://github.com/ovh/the-bastion/issues/313
Hello,
I've been trying to create an account with a key type "ed25519", but it fails with the following trace (debug enabled):
It failed like 10 times, then it magically worked, it seems to happen only with this type of key. I'm running bastion on AWS on a 20.04 instance with openssh 8.4
My configuration on bastion has this type of keys enabled, and the sshd config does allow it as well. I even added my ed key on the server and ssh into it without issues, but adding the key to myself on bastion, also failed a couple of times before being added successfully
@speed47 commented on GitHub (Jul 1, 2022):
What the script read wasn't parseable as a key, probably some issue with your terminal or copy/paste weirdness.
I see you enabled debug mode, to help in those cases we could, in the error message, print out what was received by the script and couldn't be parsed as a key, this might help pinpointing the problem.
If I push a dev branch with such debug enabled, would you be interested to test in on your AWS instance?
@asanz-mrmilu commented on GitHub (Jul 1, 2022):
I've used an ansible role to install the bastion, I guess that I'll need to build from source, I could test it next week ^^
If it helps, I'm running zsh as my shell with oh-my-zsh
@speed47 commented on GitHub (Jul 1, 2022):
I can give you the steps to swap branches manually. Depending on the configuration of your ansible role, you are either tracking the latest commit from the
masterbranch, or the most recent tag (i.e. release), which is currentlyv3.08.01.You can know which case is yours by logging in to the bastion as root and typing:
git describe -C /opt/bastion --exact-match --all.You'll either get
refs/masterortags/v3.08.01. This'll be usefull to rollback to the proper version once you're done testing.Now, to get to the test branch I've just pushed:
git -C /opt/bastion fetchgit -C /opt/bastion checkout debug_addkey/opt/bastion/bin/admin/fixrights.shYou should get an additional debug line when trying to create an account in debug mode.
To revert to your previous production branch, either
git -C /opt/bastion checkout masterorgit -C /opt/bastion checkout v3.08.01. Then, always do a/opt/bastion/bin/admin/fixrights.shto ensure the file permissions are set correctly.@asanz-mrmilu commented on GitHub (Jul 1, 2022):
Alright, I'll test it when I can and post the results here
@asanz-mrmilu commented on GitHub (Jul 14, 2022):
Alright, I'm going to test this out today or tomorrow. I'll add a couple of comments related to other issues I've found these days:
It's really weird and hard to see what's going on under the hood.
@speed47 commented on GitHub (Sep 21, 2022):
The TTL issue has been fixed (it was a reporting error on the side of
accountInfo, the TTL was correctly applied however).Any news about the problem you faced with interactive mode?
@speed47 commented on GitHub (Nov 2, 2022):
Closing for inactivity and impossibility to reproduce (for the part in interactive mode), please reopen if the issue is still valid.