N
N
nepster-web2014-04-04 16:50:15
git
nepster-web, 2014-04-04 16:50:15

Why doesn't bitbucket upload files via ssh?

The situation is this, you need to commit to the bitbucket server without entering a password, that is, using the rsa key.
I generate a key on behalf of the user:

ssh-keygen 
...
// получаю ключ 
 cat ~/.ssh/id_rsa.pub

Next, I add the received key to my bitbucket account in the Deployment Keys
section . I go to the desired folder on the server: cd / game
git init // создать новый проект 
git add -A // Добавить все файлы 
git commit -m "start" // Сохранить все это дело 
git remote add origin [email protected]:nepster/{мой репозиторий}.git
git push -u origin --all

And I grab:
conq: repository access denied. access via a deployment key is read-only.
fatal: The remote end hung up unexpectedly

Tell me, please, what kind of joke is this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Petrov, 2014-04-04
@nepster-web

Use deployment keys to get read access to this repository. Learn more about using SSH keys.

Everything is written there.
And deployment keys are repository settings, not profile settings.
In the profile, select SSH keys. Add it there.

D
Dmitry, 2016-06-03
@svetozar

You need to add your public key (content from id_rsa.pub) to the bitbucket settings:
c5294353a8fe486480073e7600d6eac9.png

F
findinshop, 2014-08-10
@findinshop

Where are the keys on the server?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question