Hi Claudiu,
On Fri, 27 May 2016, Claudiu Avram wrote:
> Git for Windows contains the file */usr/bin/sshd*
This is inherited from MSYS2's openssh package.
> Could it be that Git Bash has a ported the sshd executable by mistake?
No, Git Bash did not port anything ;-)
And the Git for Windows did not port sshd either (and you cannot port an
executable, only the source code).
The MSYS2 project did all the work to make openssh (including the SSH
daemon) compile on Windows.
It is not the only unused file in Git for Windows; I had to strike a
balance between maintenance cost and file size. The task of weeding out
sshd in favor of shaving off just a few kilobytes off of the installer
fell under the cutting table, I am afraid.
> This post
> <
http://serverfault.com/questions/702189/does-git-has-built-in-ssh-server> indicates
> that there is no ssh server in msysGit.
Well, are you now talking about msysGit? Remember: msysGit is the SDK that
was used to develop Git for Windows 1.x. You reached the mailing list
discussing GIt for Windows 2.x (since the 1.x branch was abandoned).
> Why would the Windows installation of Git contain this executable if it's
> useless?
That is easy: because nobody put in the work to exclude it from the
installer.
Ciao,
Johannes