问题遇到的现象和发生背景
使用git clone 时候 连接不上
我已经配置了免密
操作环境、软件版本等信息
仓库使用的gitlab 容器搭建的
尝试过的解决方法
这快验证了免密是可以的
[root@bogon .ssh]# ssh git@192.168.100.10 -p 2222
$ exit
Connection to 192.168.100.10 closed.
#我在 clone 就不可用了
[root@bogon .ssh]# git clone ssh://git@192.168.100.10:2222/root/web.git
Cloning into 'web'...
fatal: '/root/web.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我想要达到的结果
可以正常 clone 的仓库