Can't clone remote repository

#1

Hi guys,

I've been trying to clone a remote repository but I keep getting error "Authentication failed". I've doublechecked SSH keys and many other things but everything seems correct.

When I open the Event log I see the attached message.

I'm under the impression that this is an error due to a space in my OS username ("Jusn sebastian").

Any way to fix this?

Thanks in advance!

0 Likes

#2

Hi @juan_appspring - this is a bug we''ll have to fix in the core of Node-RED.

You may be able to patch it locally - although this is untested as I'm on vacation and don't have a Windows machine to hand. If you can find the file node_modules/@node-red/runtime/lib/storage/localfilesystem/projects/git/index.js, then look at line 107:

commandEnv.GIT_SSH_COMMAND = "ssh -i " + auth.key_path + " -F /dev/null";

try changing that to:

commandEnv.GIT_SSH_COMMAND = "ssh -i \"" + auth.key_path + "\" -F /dev/null";

and see if you get any further.

0 Likes

#3

Hi knolleary,

Thanks for your quick response.

I already fixed the issue by changing the folder name of my OS user. Had to edit the environment vars too.

Re-installed node-red and then was able to succesfully clone the remote repository.

Thank you!

0 Likes

#4

What env vars did you have to edit?

0 Likes

#5

I bassically updated all of those that had my previous username with space.

Before this I was installing node-red but nothing was happening, type "node-red" and cmd couldn't recognize it.

0 Likes