Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8056045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:35:24+00:00 2026-06-05T08:35:24+00:00

I can successfully access repositories over http:// using hgweb.cgi: $ hg clone http://mydomain.com/scgi-bin/hgweb.cgi/myrepo I

  • 0

I can successfully access repositories over http:// using hgweb.cgi:

$ hg clone http://mydomain.com/scgi-bin/hgweb.cgi/myrepo

I can also successfully ssh into mydomain.com using a password.

$ ssh myname@mydomain.com
myname@mydomain.com's password:  xxxxxx
Last login: Sat Jun 9 .....
myname@mydomain.com [~]# ls public_html/scgi-bin
./ ../ hgweb.cgi*, hgweb.config

However I can’t deduce how to serve repositories via SSH. For example, this doesn’t work:

$ hg clone ssh://myname@mydomain.com/public_html/scgi-bin/hgweb.cgi/myrepo
myname@mydomain.com's password: xxxxx
remote: stdin: is not a tty
remote: bash: hg: command not found
abort: no suitable response from remote hg!

I’m concluding that unlike http://, ssh:// doesn’t know how to run the cgi script, would that be correct? Is there a solution to this?

(btw: this is on shared hosting, where http’s root is public_html/, ssh’s root is one directory up.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:35:25+00:00Added an answer on June 5, 2026 at 8:35 am

    HTTP is not the same as SSH. HTTP is a stateless, request-based transmission protocol. SSH is a protocol which establishes a permanent, stateful connection between two machines.

    Your HTTP URL looks like a full path to a repository, but it goes through a web server, which is executing the hgweb.cgi script, passing it myrepo as an argument. The hgweb.cgi script runs Mercurial on the server against the myrepo repository (it pulls the actual location from a config file on the server). The command chain looks like this:

    Local Mercurial -> HTTP -> Web Server -> hgweb.cgi > Server Mercurial
    

    The SSH URL you’re using in the second example tells Mercurial to log into the mydomain.com server as myname, and it can find the repository at /public_html/scgi-bin/hgweb.cgi/myrepo. Most likely, that isn’t where your repo is at. The command chain looks like this:

    Local Mercurial -> SSH -> Server file system
    

    You need to change your SSH URL to use the absolute path to the repo on the server:

    hg clone ssh://myname@mydomain.com/path/to/myrepo
    

    It also looks like the server can’t find the Mercurial executable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using xauth, and can successfully get an access token, but can't work out
i have an iphone 3g and can successfully send text messages using the PHP
I'm trying to achieve: I am using CodeIgniter. I am trying to access http://localhost/mywebsite/uploads/
Ok I can successfully connect to my Access database but I am still learning
I am currently writing an Edit Account module. Using jQuery.post(); I can successfully update
I'm using PhoneGap 1.4.1 to create an iPhone application. I can successfully perform the
So I've successfully access pixel data in a frame using the c++ frame access
I have implemented an HTTPOperations class in Android that can successfully produce an HTTP
I'm currently using NSURLConnection to test if I can successfully connect to a server.
I have a Kerberos secured page, which I can access successfully in IE and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.