[R-pkg-devel] More GitHub problems

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Tue Apr 21 09:15:10 CEST 2020


On Mon, 20 Apr 2020 23:44:43 -0500
Spencer Graves <spencer.graves using effectivedefense.org> wrote:

> Is there a way to restore the functionality of a local clone of a 
> GitHub repository after the SSH key it used was replaced?

Does `git remote -v` in the repo directory show https://github.com/...
or git using github.com:... or ssh://... URLs?

Can you add the new SSH key on <https://github.com/settings/keys> and
check ~/.ssh/config to make sure that it's used when connecting to
github.com? You can verify that the SSH part of the stack works by
running `ssh git using github.com`:

PTY allocation request failed on channel 0
Hi <username>! You've successfully authenticated, but GitHub does not
provide shell access.
Connection to github.com closed.

>        I have a local clone that previously worked fine but now asks
> for a password that I don't think I have when I try "git push".

This sounds like it's using an https:// remote URL, not ssh. But I
might be mistaken.

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list