You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steve,
The output of the clone command shows that Git is using PuTTY as an SSH client.
Just a heads up, I removed the workspace id and repo name from your posts to comply with our privacy policy.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.