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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

Edited

The ssh connection doesn't seem to work, I have setup my ssh key properly but when I run the command "$ ssh -T git@bitbucket.org" I get this response:
$ ssh -T git@bitbucket.org
authenticated via ssh key.

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

And then when I try to clone a repository I get this:
$ git clone git@bitbucket.org:<workspace-id>/<repo-slug>.git
Cloning into 'canisource'...
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.

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

I do have write access to the repository. I've deleted the .ssh folder, generate a new key, link my new pub key to my account to have a fresh and clean folder and even then I still have the error.

2 answers

1 vote
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 03, 2022

Hi Steve,

Try running 

export GIT_TRACE_PACKET=1
export GIT_TRACE=1 
export GIT_CURL_VERBOSE=1

and then running the git command again, and see what the output says.

Cheers,

Christian

Premier Support Engineer

Atlassian

Hi Christian,

this is what I got when running "git clone" after running your command:

$ git clone git@bitbucket.org:<workspace-id>/<repo-slug>.git
16:57:37.068385 exec-cmd.c:237 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
16:57:37.070381 git.c:455 trace: built-in: git clone git@bitbucket.org:cyclonedesign/canisource.git
Cloning into 'canisource'...
16:57:37.139195 run-command.c:668 trace: run_command: unset GIT_DIR; 'C:\Program Files\PuTTY\plink.exe' git@bitbucket.org 'git-upload-pack '\''<workspace-id>/<repo-slug>.git'\'''
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.

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

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 08, 2022

Hi Steve,

The output of the clone command shows that Git is using PuTTY as an SSH client.

  • Did you use PuTTY to generate the SSH key pair?
  • If so, is Pageant running on your machine, and does it have the key loaded?

Just a heads up, I removed the workspace id and repo name from your posts to comply with our privacy policy.

Kind regards,
Theodora

Hi Theodora,

 

If I open Pageant and add the key it work. Is there a way to not use Putty as an SSH client ?
I've tried deleting the Environment Variable name "GIT_SSH", and did a fresh install of git but it still want to use putty even if I selected the build in solution during the install.

 

Thank you

Hi Christian Glockner you are just fantastic, thanks for the help

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events