2

I am integrating bot using ssh with bitbucket.
I have done all the steps as described in documentation, generate ssh copied it onto bitbucket.
But I keep getting following error always while integrating bot:

debug1: Roaming not allowed by server,
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

I tried this :

ssh -T git@bitbucket.org 

on terminal and got following output:

logged in as my UserName.

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

How would you troubleshoot that issue?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
rtk123
  • 143
  • 7
  • Seems similar to another recent, and unanswered question: http://stackoverflow.com/questions/20674602/os-x-server-git-integration-with-ssh-fails-with-permission-denied-error – VonC Dec 30 '13 at 08:56
  • I have updated .ssh folder permission to- $ chmod 700 ~/.ssh $ chmod 600 ~/.ssh/* But still getting roaming not allowed by server. – rtk123 Jan 03 '14 at 18:33

1 Answers1

0

This is generally because your bot doesn't use the same account than the one your are testig your ssh command.

Make sure the bot has, under its ~/.ssh, a id_rsa and id_rsa.pub (with the latter copied on your BitBucket account, which should be the case since your ssh -T git@bitbucket.org works on the terminal).
Check also the permission of that .ssh folder and its files (again with the right account used by the bot), as described in "[Git SSH authentication][1]" .


The OP rtk123 confirm in the comments:

I was using wrong ssh key with bot on mac osx server: I didn't add ssh key to server repository.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250