由端口导致git克隆失败的解决办法

问题描述:

cloning into ‘test’ ...

ssh: connect to host 11.10.0.20 port 22: Connection refused

fatal: Could not read from remote repository.

解决方法:

用户:User    服务器地址:ServerID    端口:Port

克隆至本地命令格式改为:

git clone ssh://User@ServerID:Port/......

你可能感兴趣的:(由端口导致git克隆失败的解决办法)