Failed to fetch from git on Ubuntu server inside Virtualbox

I have a virtual virtual machine with an Ubuntu server working with a network installed on a bridge.

I installed git, initialized the repo, added my key to my github account, and started ssh -T git@github.comeverything without errors.

My problem arises when I try to actually pull the repo. No matter which repo I'm trying to pull, I get an errorPermission denied (publickey). fatal: The remote end hung up unexpectedly

So, any work tips?

Thank.

+5
source share
3 answers

I found a workaround:

, , "" Virtualbox. NAT, , Bridged, , NAT, .

, . - , .

+4

, github , . vm github..

: git clone https://username:password@github.com/repositoriUrl.git

( github, github repositoryUrl.git URL- ).

, !

+2

Have you placed your default ssh keys in your virtual machine?

Permission denied (publication)

This usually happens when ssh cannot find your keys. Make sure the key is in the default location, ~ / .ssh. [..]

Quote: http://help.github.com/ssh-issues/

+1
source

All Articles