git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* does the git over ssh protocol tell the server the hostname?
@ 2015-02-26 23:14 Christoph Anton Mitterer
  2015-03-01  0:41 ` Shawn Pearce
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Anton Mitterer @ 2015-02-26 23:14 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

Hey.

Short question:

I saw that when plain git (i.e. git://) is used, the client tells the
server the hostname specified on the client side.
For http one has the same automatically via http's Host: header.

But after watching the git's over-ssh protocol, I couldn't find anything
like that there? :-(

Would be quite nice to have this in order to implement vhosting like
things.

Cheers,
Chris.

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5313 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: does the git over ssh protocol tell the server the hostname?
  2015-02-26 23:14 does the git over ssh protocol tell the server the hostname? Christoph Anton Mitterer
@ 2015-03-01  0:41 ` Shawn Pearce
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Pearce @ 2015-03-01  0:41 UTC (permalink / raw)
  To: Christoph Anton Mitterer; +Cc: git

On Thu, Feb 26, 2015 at 3:14 PM, Christoph Anton Mitterer
<calestyo@scientia.net> wrote:
>
> I saw that when plain git (i.e. git://) is used, the client tells the
> server the hostname specified on the client side.
> For http one has the same automatically via http's Host: header.
>
> But after watching the git's over-ssh protocol, I couldn't find anything
> like that there? :-(

No, it does not send the host name.

The host name in SSH that Git sees could be an alias in the user's
~/.ssh/config file that is rewritten to a different host. So virtual
hosting keying off that could be confusing since the end user expects
to have more control over it than they do with git:// or https://
where the host name is usually a DNS record the user does not control.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-01  0:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-26 23:14 does the git over ssh protocol tell the server the hostname? Christoph Anton Mitterer
2015-03-01  0:41 ` Shawn Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).