Reputation: 28463
Due to Bundle install choking on libv8 dependency from theRubyRacer, JSON and other gems on a win 7 I'm trying to install and get running with Ubuntu. Copied over .gitconfig and .ssh/rsa_id and .ssh/rsa_id.pub files, but trying a git clone of a private repo, works on win7 but fails (with same public key) on linux:
james@ubuntu:/documents/projects/$ sudo git clone [email protected]:the_project/back_end
[sudo] password for james:
Cloning into back_end...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
vs win7's:
C:\test>git clone [email protected]:the_project/back_end
Cloning into back_end...
Enter passphrase for key '/c/Users/AJames/.shh/id_rsa':
remote: Counting objects: 10034, done.
any ideas? Thank you!!
Upvotes: 1
Views: 1529
Reputation: 526593
Using sudo
would cause it to try to use root
's SSH key, not your own.
You probably really should either grant yourself access to the directory you're cloning into, or clone into a directory you already have access to.
Upvotes: 6