从本地计算机上的服务器克隆git存储库时出错

时间:2019-05-05 00:21:08

标签: git

我将git安装在托管的远程服务器上,我希望它成为我的git服务器并由开发人员进行协作。 但是,当我尝试克隆机器上服务器上的存储库以开始协作时,出现以下错误:

并且我的服务器当前未启用代理和防火墙

git clone https://xxx.xxx.xxx.xxx/home/processador/Download/moveis.git
Cloning into 'moveis'...
fatal: unable to access 'https://xxx.xxx.xxx.xxx/home/processador/Download/moveis.git/':
Failed to connect to xxx.xxx.xxx.xx port 443: Connection refused```

1 个答案:

答案 0 :(得分:1)

安装Git并不意味着HTTPS服务器会自动侦听您的请求。

但是,您可以运行sshd(SSH守护程序),这意味着您可以尝试SSH URL,前提是您已将公钥部署到正确的远程帐户~/.ssh/authorized_keys