Assuming you can ssh into the server, you created the repo in /opt/git/
, and not in /home/user/opt/git/project.git
Try using any of the following url instead for the remote
user@192.168.212.139:/opt/git/project.git
ssh://user@192.168.212.139:/opt/git/project.git
where user is the username with whose access you created the project.git
, and to which you ssh into on the server. You can update the remote in your local project's .git/config
file.
You seem to be following chapter 4.4 of git-scm book on setting up the git server, I would recommend reading through 4.1 to understand the various protocols (https://
, ssh;//
, and git@
).