git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: GIT smart http vs GIT over ssh

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Jul 31, 2012, 08:47 UTC
Message-ID
<50179B89.4050106@drmicha.warpmail.net>
In-Reply-To
<CACbucKmEAz2BQCA28LObk_4Vk4S+-T2bAHaszNNR6=tH0mj9pg@mail.gmail.com>
vishwajeet singh venit, vidit, dixit 31.07.2012 05:19:
Show 20 quoted lines
> On Tue, Jul 31, 2012 at 8:40 AM, Konstantin Khomoutov
> <kostix+git@007spb.ru> wrote:
>> On Tue, Jul 31, 2012 at 08:36:07AM +0530, vishwajeet singh wrote:
>>
>>> Just wanted to know the difference between smart http and ssh and in
>>> what scenarios we need them
>>> I am setting up a git server,  can I just do with smart http support
>>> or I need to enable the ssh support to use git effectively.
>>> As I understand github provides both the protocols, what's the reason
>>> for supporting both protocols.
>> http://git-scm.com/book/en/Git-on-the-Server-The-Protocols
>> http://git-scm.com/2010/03/04/smart-http.html
>>
> 
> Thanks for the links, I have already gone through those links, was
> looking from implementation perspective do I really need to support
> both protocols on my server or I can just do with smart http and
> what's the preferred way of doing it smart http or ssh
> 
> 
You need to provide what your users demand ;)

Seriously, this is why GitHub and other providers offer both. Not only are some users more comfortable with one protocol or the other (Win users don't prefer ssh generally) but some might be able to use only one because of firewalls or corporate rules.

>From the server perspective, the setup is completely different, of

course. Do you have shell accounts already which you want to reuse for ssh+git? Do you prefer setting up a special purpose shell account (gitosis/gitolite) or setting up a web server with authentication?

Michael
Previous: vishwajeet singhNext: vishwajeet singh
Message 4 of 8 in “GIT smart http vs GIT over ssh”
  1. vishwajeet singhJul 31, 2012
  2. Konstantin KhomoutovJul 31, 2012
  3. vishwajeet singhJul 31, 2012
  4. Michael J GruberJul 31, 2012
  5. vishwajeet singhJul 31, 2012
  6. Michael J GruberJul 31, 2012
  7. Sitaram ChamartyJul 31, 2012
  8. vishwajeet singhJul 31, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.