On Sat, May 7, 2016 at 5:45 AM, Dominique Pellé
<[email protected]> wrote:>
> I get an error when I clone submodules. Any idea?
[snip]
> Warning: Permanently added the RSA host key for IP address
> '192.30.252.122' 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.
> Clone of '[email protected]:rhysd/clever-f.vim.git' into submodule path
> 'bundle/clever-f' failed

This error happens because the ssh connection to [email protected]
failed, and that is due to "Permission denied (publickey)". For a
person that has a github account he/she must have already setup the
appropriate public/private key pair for accessing his/her github
repositories using the ssh protocol via [email protected], which has a
side effect of giving read-only accesses to all other public
repositories on github via [email protected]. A workaround for this issue
(that is when one does not have the public/private key setup for
accessing git repositories via the ssh protocol) is to tell git to
always use the https:// protocol instead of ssh when accessing any
[email protected]: repositories. This can be done like so:

git config --global url."https://github.com/".insteadOf "[email protected]:"

HTH,

nazri.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui