Raymond Chenon
Raymond Chenon

Reputation: 12662

Mercurial: can't host on BitBucket.org with an error SSH, OpenSSH?

For a new project :

  1. I created a new repo inside the project's folder.
  2. I created a new repo on bitbucket.org
  3. Now I have one local repo and one remote repo. So I should not need to clone. I push from the local to remote.

In Repository Explorer, I fill the URL and "push outgoing changesets". No login and pwd asked? I get this error error SSH-2.0-OpenSSH_5.3


Previously I cloned a HG project on bitbucket.org with no problem. Is there any conflict with the previous repo? Where should I input the login and password? I changed in the Global Settings > Proxy

Host : https://bitbucket.org/$myaccount
user :
password :

Should I use a proxy ? Still something wrong with error SSH-2.0-OpenSSH_5.3

Upvotes: 1

Views: 659

Answers (2)

Raymond Chenon
Raymond Chenon

Reputation: 12662

Eureka, I found it.
I filled something in Global Settings > Proxy so that I won't need to re-authenticate each time.
This was the cause of the infamous error SSH-2.0-OpenSSH_5.3 . That was stupid I know.
What I should have done is : First uncheck the proxy settings.

Second I'm too lazy to input my authentication , I should configure paths (Hg Repository Explorer > Synchronize > Configure paths) to save the URL . But still now I don't know how to save my login and pwd . But NOW it WORKS

Upvotes: 0

Ry4an Brase
Ry4an Brase

Reputation: 78330

That error is telling you that the path you're trying to push to on bitbitbucket doesn't match the repository you created there. Perhaps you've got a typo in your username or your project (case matters for both). The easiest way to get that URL is to copy it right off of the bitbucket page for that repo.

People's confusion in your wording comes from this statement "I want to push (by cloning) my local repo". Pushing and cloning are separate operations. Cloning creates a new repository and pushing moves changesets between two already existing repositories.

If you do have a repo locally and remotely already then you want to push but not clone, and you need to get the URL right to do it.

Upvotes: 1

Related Questions