This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Tilde (~) not recognized in key file path #9
Labels
Comments
Samyak2
added
bug
Something isn't working
enhancement
New feature or request
good first issue
Good for newcomers
labels
Sep 4, 2021
@Samyak2
|
@u5surf I'm not sure if that will be valid in all cases. The tilde should only be recognized at the beginning of the path, as in |
u5surf
added a commit
to u5surf/heiko
that referenced
this issue
Sep 6, 2021
u5surf
added a commit
to u5surf/heiko
that referenced
this issue
Sep 11, 2021
u5surf
added a commit
to u5surf/heiko
that referenced
this issue
Nov 20, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
The issue
Heiko allows a custom SSH private key to be used for auth, instead of the one generated by heiko. This can be set in the configuration as shown:
https://github.com/psiayn/heiko/blob/fb8b464ec2d4308fde9a4d6cfbcc2762d2851783/examples/sample-config.yml#L9
Generally, these keys are stored in
~/.ssh
(which is$HOME/.ssh
). Providing the path with the~
(tilde) in it is not recognized by heiko, it exits with this error:The solution
When the paths are read on this line:
https://github.com/psiayn/heiko/blob/fb8b464ec2d4308fde9a4d6cfbcc2762d2851783/internal/config/sshSetup.go#L110-L112
If it starts with
~/
, it must be expanded appropriately. Possible approaches for this are here and here.The text was updated successfully, but these errors were encountered: