默认会出错
$ git clone git@192.168.1.1:group1/test1.git
Cloning into 'lbtest1'...
git@192.168.1.62's password:
Connection closed by 192.168.1.62 port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我们应该使用如下格式
git clone ssh://git@hostname:port/.../xxx.git
实际如下:
git clone ssh://git@192.168.1.1:SSH新端口号/group1/lbtest1.git
声明:
本文采用
BY-NC-SA
协议进行授权,如无注明均为原创,转载请注明转自
走着的小站
本文地址: gitlab使用非22ssh端口号clone出错
本文地址: gitlab使用非22ssh端口号clone出错