Now need to also can submit the code from the network, and then made a map on the router, you can now through SSH connection to git server, SSH [email protected] - p3789, is mapped to a network outside the network port 3789 192.168.1.198 git port 22,
The problem is how to splice a url git clone code from the network?
CodePudding user response:
This I don't know specific how to operate, should build a HOSTS locally, will you want to visit the address of the DNS manually to a domain name,CodePudding user response:
A: public mapping router port to 222: modify the SSH port 22
Three: git clone SSH://git @ the hostname: port/.../XXX. Git (Internet didn't try) is at the back of the IP address and port number,
Git clone [email protected]:3789/../CCC. Git
CodePudding user response: