Git Repositories That Have SSH2 Key With Password

inetbizo

Well-Known Member
I would like to clone a repository on Github. On Github, I have stored my RSA 256 public key. This key is encrypted with a password. I cannot clone in cp repositories because you do not prompt for pass key.

I wrote this into .bashrc

Code:
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
  eval `ssh-agent`
  ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
ssh-add -l > /dev/null || ssh-add
My key is authorized in managed keys. I get this error:

Error: “/usr/local/cpanel/3rdparty/bin/git” reported error code “128” when it ended: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

See How can I run ssh-add automatically, without a password prompt?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463

inetbizo

Well-Known Member
Code:
Error: “/usr/local/cpanel/3rdparty/bin/git” reported error code “128” when it ended: Warning: Permanently added 'github.com,192.30.253.112' (RSA) 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.
Repo fork is public
Code:
[email protected]:denverprophitjr/minimal-mistakes.git
Code:
(subdomains/jekyll:2.4)[[email protected] ~]$ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-EgaMvXZYj1Do/agent.19943; export SSH_AUTH_SOCK;
SSH_AGENT_PID=19944; export SSH_AGENT_PID;
echo Agent pid 19944;
---
.bashrc
---
Code:
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
  eval `ssh-agent`
  ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
ssh-add -l > /dev/null || ssh-add
If I CLI clone, it's fine. If I use the UX, I get that error code.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello @inetbizo,

Can you open a support ticket so we can take a closer look? You can post the ticket number here and I'll link this thread to it.

Thank you.