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 git@github.com: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 git@github.com: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!!
Using
sudowould cause it to try to useroot‘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.