git clone ssh non-standard port (non port 22) Processing Method

The company intranet built gitLab server, while using the company's FRP to map out the network server, allowing extranet users can access to part, but set outside the network server ssh landing time, limiting the port 10022

When I use git clone git @ xxx: 10022: develop / xxx.git find clone the code can not be achieved

Originally, when the ssh port access change, the original way to die, we must use the new way

git clone ssh://git@hostname:port/…/xxx.git

hostname: can be an IP address of the host may also be a domain name, the domain name will automatically be resolved by DNS

port: port number

Sample as follows:

git clone ssh://git@hostname:10022/develop/test.git

Computer rental hang idle resources to earn money electricity
use of idle computer resources to earn pocket money (for students, housewives)
Online generated outside the chain tool (International Edition)
generated on-line outside the chain tool (Chinese version)

Published 16 original articles · won praise 2 · Views 406

Guess you like

Origin blog.csdn.net/momoringmok/article/details/104934237