I am connecting from a Ubuntu laptop to a virtual machine via ssh.
Within this VM, I am trying to git clone a repository with:
/home/httpd$ sudo git clone git@github.com:NexwayGroup/softgallery
[sudo] password for jverstrynge:
Cloning into 'softgallery'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
I have seen this SO question and the solution suggests modifying the git config with:
/home/httpd$ git config http.postBuffer 524288000
error: could not lock config file .git/config: No such file or directory
But I am getting the above error. Anyone knows how to solve this one?
I have checked the connection using github instructions and it seems fine:
ssh -T git@github.com
Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
Enter passphrase for key '/home/jverstrynge/.ssh/id_rsa':
Hi JVerstry! You've successfully authenticated, but GitHub does not provide shell access.
jverstrynge@devjverstrynge:/home/httpd$