S
S
Socrates2017-10-19 18:33:51
SSH
Socrates, 2017-10-19 18:33:51

SSH hosting connection with bitbucket?

Guys, stuck for a day.
How can I connect hosting via ssh to bitbucket?
Hosting (timeweb)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Socrates, 2017-10-19
@Karmov69

In general, the problem was solved, the task was that it was necessary to generate a public and private key on the hosting and place them on the bitbucket.
Before that, I tried to generate it with the ssh-keygen command and got the
error fatal: Could not read from remote repository.
The problem was solved by generating a key with the following command ssh-keygen -b 2048 -t rsa -q -N '' -f ~/.ssh/id_rsa

S
Saboteur, 2017-10-19
@saboteur_kiev

Generate a pair of ssh keys, put the public one in your bitbucket account, put the private one on the hosting and connect. Or what exactly do you want?

C
chupasaurus, 2017-10-19
@chupasaurus

You can use Bitbucket Pipelines ( an article about using SSH keys there) or set up web hooks that pull some script on the hosting that will pull updates to the master branch as you need and where you need it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question