Git Pull Add-On not authenticating

I havebeen trying to get that Git Pull Add-On to work but lack understanding of linux to solve this. Any help is really, really appreciated.

my config (all entered in the UI):

repository: [email protected]:wolfg**res/******.git
git_branch: main
git_remote: origin
auto_restart: false
restart_ignore:
  - ui-lovelace.yaml
  - .gitignore
git_command: pull
git_prune: false
deployment_key:
  - >-
    -----BEGIN OPENSSH PRIVATE KEY-----
    b3BlbnNzaC1****mvAAAAC2hhLWdpdC1zeW5jAQI= -----END OPENSSH PRIVATE
    KEY-----
deployment_user: ""
deployment_password: ""
deployment_key_protocol: ed25519
repeat:
  active: false
  interval: 300

my log:

6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[14:35:47] INFO: Check SSH connection
[14:35:48] WARNING: [Warn] No valid SSH connection for [email protected]
[14:35:48] INFO: [Info] Start adding SSH key
[14:35:48] INFO: [Info] Setup deployment_key on id_ed25519
[14:35:48] INFO: [Info] Local git repository exists
[14:35:48] INFO: [Info] Git origin is correctly set to [email protected]:wolfgangbures/HA1180.git
[14:35:48] INFO: [Info] Start git fetch...
Load key "/root/.ssh/id_ed25519": error in libcrypto
[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.
[14:35:49] FATAL: [Error] Git fetch failed
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

I have added the .pub file to the deployment keys in GitHub…

the public key was saved in a wrong format in the YAML (though I added it through the GUI), I have created an issue: Git Pull stores SSH Key wrong · Issue #4257 · home-assistant/addons

1 Like