This question has already been answered:
The latest version of GitLab (9.2.5) is installed on a virtual machine with Ubuntu 16.04 on the local network. I did the initial setup on the guide from the GitLab site and then received Let's encrypt the certificate, on the guide: Ports 443 and 22 are displayed outside, an a-record is registered in the public domain, and https://gitlab0.junecat.ru is opened. Moreover, I started users, projects, and started working, however, during any operation I have to choose https as a protocol.
- how to fix work with git protocol?
Here is a demonstration of the problem with this protocol, I took a “clean” machine with Win 7, put putty and Git for windows on it.
Then I checked first - that I can connect via putty to the 22nd port of the host gitlab0.junecat.ru. Then I configured the global parameters git - config user.name and user.email
Then I tried to clone the repository on this new Win7 - machine, here is a screenshot and all the messages as text:
C:> mkdir GitProjects
C:> cd GitProjects
C: \ GitProjects> git clone git@GitLab0.junecat.ru: konst / TradingG0_Solution.git
Cloning into 'TradingG0_Solution' ...
The authenticity of host 'gitlab0.junecat.ru (77.246.237.76)' can't be established.
ECDSA key fingerprint is SHA256: 8dMOgDXYjZWRj + bqEacWKTt00uppdB1A2cL / 0GL4Ua8.
Are you sure you want to continue connecting (yes / no)? yes
Warning: Permanently added 'gitlab0.junecat.ru, 77.246.237.76' (ECDSA) to the list of known hosts.
git@gitlab0.junecat.ru's password:
Permission denied, please try again.
git@gitlab0.junecat.ru's password:
Pay attention to the following points:
1) The link I use for cloning is taken from my GitLab. Here are the links for both protocols:
git: git@GitLab0.junecat.ru: konst / TradingG0_Solution.git
https: https: //tst@GitLab0.junecat.ru/konst/TradingG0_Solution.git
When cloning, the user was not asked, only the password. moreover, the link starts with git @ - is this generally correct? such user, if anything, is not in the system. The user name, on behalf of the kogtorgo I work - tst, it is clearly visible in the https - link.
You may ask "why do you need git at all, work through https". But when working on https with push, a password is always requested. And I need to import large projects from SVN, and for automation I would like to write scripts that I will allow to push without a password.


ssh -T git@gitlab0.junecat.ru. It should work fine. (yes, it's better to use git-bash, not git-cmd) - KoVadim