I have a VMWare Player, it is running a local VM that is hosting the Gitlab Server based on official container repo. I have changed the ports as follows:
Host → Container
I can access gitlab at the address
http://192.168.71.129:85/from my browser.
I added the SSH key using GitHub's Git PowerShell into my Gitlab account that I can access locally.
I created a config file in my .ssh directory that has the contents as follows:
#in gitlab.com server Host 192.168.71.129 Port 27 User git RSAAuthentication yes IdentityFile ~/.ssh/id_rsa
When I try to push to my Gitlab account using the following commands as shown in Gitlab:
cd existing_folder git init git remote add origin git@gitlabhost:someuser/secondtest.git git add . git commit git push -u origin master
I get the following error from the last statement:
ssh: Could not resolve hostname gitlabhost: Name or service not known fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
What setting am I missing? Any hints, suggestions?