In my company, whenever I want to push to git server
from within the company, I have no problem as the .git/config file is like:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = me@172.x.x.x:/home/git/repositories/YYY
our company has a public IP and they say the access to our git server
is from :
137.a.a.a:bbb
I need to push to the remote branch from home, but I dont know how to configure the git using this IP, I tried to change the above url to
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = me@137.a.a.a:bbb/home/git/repositories/YYY
but there was no luck.the error says:
ssh: connect to host 137.a.a.a port 22: Connection timed out
fatal: The remote end hung up unexpectedly
There problem could be a firewall or other networking issue. But before that, I want to make sure if my change is correct or not. thank you