Git Repositories That Have SSH2 Key With Password
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
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?
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?
-
Hello @inetbizo, If you entered an SSH clone URL, the system should automatically check for the remote server's public SSH host key. The system stores this key in the /home/user/.ssh/known_hosts file, where user represents your username. Can you verify the known_hosts file is setup correctly, and if so, review the documents below and let us know if you've followed all of the steps? Guide to Git - Set Up Access to Private Repositories - cPanel Knowledge Base - cPanel Documentation Thank you. 0 -
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 publicgit@github.com:denverprophitjr/minimal-mistakes.git
(subdomains/jekyll:2.4)[denverpr@pluto ~]$ 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 ---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.0
Please sign in to leave a comment.
Comments
3 comments