Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Access Bitbucket from a HostPapa VPS

kiusau February 7, 2022

The following procedure for cloning my Bitbucket repository to the HostPapa server does not work:

$ ssh -T git@bitbucket.org
Enter passphrase for key '/home/thege0/.ssh/id_rsa':
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

$ git clone git@bitbucket.org:kiusau/deflation-made-simple.git
fatal: could not create work tree dir 'deflation-made-simple': Permission denied
$

Please advise.

Roddy

1 answer

1 accepted

0 votes
Answer accepted
kiusau February 7, 2022

The problem was overcome when I by-passed the password for the private-key with the following SHELL commands and realized that cPanel's GIT Version Control feature and Bitbucket are incompatible.

$ eval $(ssh-agent)
Agent pid 11772
$ ssh-add ~/.ssh/id_rsa
Enter passphrase for /path/to/private/key/id_rsa:
Identity added: /path/to/private/key /id_rsa

After insuring that I -- not root -- owned the new directory that I created to hold my cloned repository I entered the destination folder with the SHELL cd command.  While in the folder I followed with the following Bitbucket git command.

git clone git@bitbucket.com:kiusau/deflation-made-simple

I suppose that I must now create a repository out of the cloned files and folders with the

git init

and subsequent commands.

Roddy

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events