P
P
Peter2016-06-30 20:56:39
git
Peter, 2016-06-30 20:56:39

How to "reinitialize" git after changing ssh key?

Hi
I changed my ssh key.
In an old bitbucket project, git pull stopped working:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

git clone works. The key is registered.
What should be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Kutylev, 2016-06-30
@sakutylev

eval `ssh-agent -s`
ssh-add /path/to/key/file
git pull

I
Ivan, 2016-06-30
@0neS

https://help.github.com/articles/generating-an-ssh-key/
https://help.github.com/categories/ssh/
https://confluence.atlassian.com/bitbucket/how-to- ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question