Hi,
I'm stuck integrating a GIT repository using ssh-keys.
I have the NodeRed 1.1.3 (latest now) and a gitea Installation 1.12.4 (latest now)
When I try to clone a repo from the GIT server it failes.
I'm using the GIT URL git@hostname.fqdn:gitrepo/test.git
Log from Node-Red (trace):
18 Sep 11:28:20 - [trace] runGitCommandWithSSHCommand {"key_path":"/home/wf/.node-red/projects/.sshkeys/admin_zui","passphrase":""}
18 Sep 11:28:20 - [trace] git["clone","ssh://git@hostname.fqdn:gitrepo/test.git","."]
18 Sep 11:28:20 - [debug] git -c credential.helper= clone ssh://git@hostname.fqdn:gitrepo/test.git .
18 Sep 11:28:20 - [debug] [err] Cloning into '.'...
18 Sep 11:28:20 - [debug] [err] LDAP Login enabled
18 Sep 11:28:20 - [debug] [err] Gitea: Invalid repository path
18 Sep 11:28:20 - [debug] [err] Invalid repository path: 'test.git'
18 Sep 11:28:20 - [debug] [err] fatal: Could not read from remote repository.
18 Sep 11:28:20 - [debug] [err]
18 Sep 11:28:20 - [debug] [err] Please make sure you have the correct access rights
18 Sep 11:28:20 - [debug] [err] and the repository exists.
18 Sep 11:28:20 - [debug] rc=128
When I try to do the same manually it works
vim /home/wf/.ssh/config
#Add the 2 lines:
---
Host hostname.fqdn
IdentityFile /home/wf/.node-red/projects/.sshkeys/admin_zui
---
wf@hostname:/tmp/j$ git clone git@hostname.fqdn:repo/test.git
Cloning into 'test'...
LDAP Login enabled
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3/3), 238 bytes | 0 bytes/s, done.
Checking connectivity... done.
Do you have any idear what goes wrong or how to generate more debug data?
The following line seems a little strange, but I'm not sure.
git -c credential.helper= clone ssh://git@hostname.fqdn:gitrepo/test.git .
Thanks for any hint