Wednesday, November 30, 2011

Mercurial answers remote:ssl required (simple mistake!)

Today I got my new laptop at work finally set up and running.

I made some changes to my C/C++ code and tried to push the changes to mercurial repository using Tortoise HG client. But the server just responded:
pushing to http://mercurial.company.com/code/hg/username/project
searching for changes
24 changesets found
remote: ssl required

Well, that was something I did not expect... 

I did found only irrelevant information from the web, and finally asked help from my colleague. He answered briefly, "Are you using ssh connection?".

Of course! That was it. I just needed to change the protocol in my repository address from http to ssh... Sometimes it is difficult to see obvious problem.

So, before doing any changes to your Apache or Mercurial server, check your address... :)

2 comments:

Anonymous said...

Hah, thanks, I made the same mistake! Twice! :P

Unknown said...

perfect, edited my hgrc file and voila!