处理git clone命令的非标准SSH端口连接 使用git clone命令clone项目时,如果repository的SSH端口不是标准22端口时(例如,SSH tunnel模式,等等),可以使用如下命令: git clone ssh://git@hostname:port/.../xxx.git 举例如下: git clone ssh://git@10.137.20.113:2222/root/test.git
感谢分享。
我之前在端口号后面多写了个冒号,一直失败,看了你的文章后解决了:)
感谢分享,亲测可行。