You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the - >- YAML formatting which does not supply a \n (newline) at the end. This results in a libcrypto error when ssh tries to load the private key and fails the git command. When I try and manually add a newline using the >- nomenclature, the text is reformatted when clicking the save button which removes the newline.
I solved this issue by reformatting the key by editing the config in YAML mode:
Git pull (7.14.1), Advanced SSH & Web Terminal (18.0.0), Custom deps deployment Visolo (1.3.6), Studio Code Server (5.15.0), Mosquitto broker (6.4.1), MQTT Explorer (browser-1.0.1), rtlamr2mqtt (2.3.4), ESPHome (2024.7.2), Asterisk (4.4.0), EMQX (0.6.1), Home Assistant Google Drive Backup (0.112.1), Z-Wave JS (0.6.2), Z-Wave JS UI (3.9.2), Zigbee2MQTT (1.39.0-1)
Dashboards
dashboards
5
resources
18
views
17
mode
storage
Recorder
oldest_recorder_run
July 21, 2024 at 2:02 AM
current_recorder_run
July 27, 2024 at 9:47 PM
estimated_db_size
1051.65 MiB
database_engine
sqlite
database_version
3.45.3
Spotify
api_endpoint_reachable
ok
Anything in the Supervisor logs that might be useful for us?
No response
Anything in the add-on logs that might be useful for us?
[Warn] No valid SSH connection for [email protected]
[Info] Start adding SSH key
[Info] Setup deployment_key on id_ed25519
[Info] setting up credential.helper for user: str
[Info] Saving git credentials to /tmp/git-credentials
fatal: refusing to work with credential missing host field <-- red herring
[Info] Local git repository exists
[Info] Git origin is correctly set to [email protected]:baudneo/<REDACTED>.git
[Info] Start git fetch...
Load key "/root/.ssh/id_ed25519": error in libcrypto <----- ERROR
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
[Error] Git fetch failed
Additional information
When using the - >- format, the private key needs a newline terminator at the end or you can switch the formatting.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I confirm, the solution from @baudneo is the functional workaround. I was experiencing the same issue and the new line dashes and double quotes fixed my headache.
Describe the issue you are experiencing
When using an SSH key with the git pull add-on, the add-on will format the key in YAML as:
Using the
- >-
YAML formatting which does not supply a \n (newline) at the end. This results in a libcrypto error when ssh tries to load the private key and fails the git command. When I try and manually add a newline using the>-
nomenclature, the text is reformatted when clicking the save button which removes the newline.I solved this issue by reformatting the key by editing the config in YAML mode:
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Which add-on are you reporting an issue with?
Git pull
What is the version of the add-on?
7.14.1
Steps to reproduce the issue
System Health information
System Information
Home Assistant Community Store
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Spotify
Anything in the Supervisor logs that might be useful for us?
No response
Anything in the add-on logs that might be useful for us?
Additional information
When using the
- >-
format, the private key needs a newline terminator at the end or you can switch the formatting.The text was updated successfully, but these errors were encountered: