W
W
WebDev2017-02-22 22:30:12
git
WebDev, 2017-02-22 22:30:12

How to make git work via key?

On the git server, cloned the repository from bitbucket via https. Each time you access bitbucket, you need to enter a password. I decided to connect an ssh key, generated it, added the public one in the settings on the bitbucket, the private one is on the server.
How can I make an existing repository authenticate using this key? The manuals show how to specify the key when cloning a new repository, but I did not find it for an existing one.
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2017-02-22
@kirill-93

change the address of the repack in .git/config .

A
aol-nnov, 2017-02-22
@aol-nnov

authorization by key - via ssh. through all sorts of smart-s and http - only login / password

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question