I am trying to make the git plugin work with my ssh key but am receiving the following error:
Error: Return (128) from RunCommand. at (eval 32) line 363. Cloning into '/opt/electriccloud/electriccommander/workspace/TestGitConfig_13/licenseminer'... Warning: Permanently added the RSA host key for IP address '< address>>' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Here's the background info: 1) I have successfully been using the Git plugin for several years now over https and username/password 2) plugin is version 22.214.171.124 3) Flow is version 8.2 4) OS is ubuntu 16.04 5) I have created the the ssh public/private keys and installed them under the ~/.ssh directory for agent user 6) As the agent user on the same resource as the procedure runs, I can successfully run a git clone by cutting and pasting the same command that is found in the plugin output log. 7) I created a ECSM configuration with the private key content pasted into the appropriate field and have configured the procedure to use that configuration.
I know that the plugin doesn't use the ~/.ssh directory but instead writes a ssh wrapper file in the /tmp directory using the config content. I just needed to validate that the key worked. My concern is that the ssh wrapper that is being generated is not working properly....
Has anyone else run into this? Are there any environment settings or character escaping issues that prevent the private key from being written out correctly?