Git仓库似乎不是git存储库

时间:2018-06-19 17:57:55

标签: git repository git-clone

我想在没有GitHub的情况下建立一个git repo。在我的服务器上,我有一个初始化的git存储库,如下所示:

> git init
> git add *
> git commit -m "test" 

现在,我想通过SSH从服务器上克隆此存储库(无SSH密钥,使用密码,因为在主机上无法使用SSH密钥)。

这是我在本地计算机上执行的操作:

> git clone ssh://user:password@host.com/backend

这就是我得到的:

> Cloning into 'backend'... Permission denied, please try again.
> Permission denied, please try again.
> user:password@.host.com: Permission denied
> (publickey,password). fatal: Could not read from remote repository

Please make sure you have the correct access rights
and the repository exists.

如何解决此错误,为什么会出现此错误?

致以问候,谢谢!

0 个答案:

没有答案
相关问题