Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法从Windows计算机连接到Linux git Repo_Linux_Windows_Git_Ubuntu - Fatal编程技术网

无法从Windows计算机连接到Linux git Repo

无法从Windows计算机连接到Linux git Repo,linux,windows,git,ubuntu,Linux,Windows,Git,Ubuntu,所以最近我一直在尝试建立一个Git服务器来管理个人项目和工作。我在一台运行Ubuntu的备用笔记本电脑上创建了一个裸Git repo,并在我的Windows机器上安装了Git Bash。现在我在将我的Ubuntu git服务器克隆到我的Windows计算机上时遇到了一些问题 我使用了git远程添加源代码myserver@myserver-戴尔系统:/home/myserver/CentralRepo.git但是 每当我尝试克隆到我的Windows计算机时,Git bash都会抛出以下错误: ss

所以最近我一直在尝试建立一个Git服务器来管理个人项目和工作。我在一台运行Ubuntu的备用笔记本电脑上创建了一个裸Git repo,并在我的Windows机器上安装了Git Bash。现在我在将我的Ubuntu git服务器克隆到我的Windows计算机上时遇到了一些问题

我使用了
git远程添加源代码myserver@myserver-戴尔系统:/home/myserver/CentralRepo.git
但是 每当我尝试克隆到我的Windows计算机时,Git bash都会抛出以下错误:

ssh: Could not resolve hostname myserver@myserver-Dell-System: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and repository exists.
我仔细检查了我的add以确保我的Git服务器的地址是正确的,我假设gitbashforwindows附带OpenSSH


有谁知道为什么会发生这种情况,以及我如何让我的Windows计算机成功地从服务器克隆到自身?谢谢

有效的ssh url将是

auser@myserver-Dell-System
您可以检查是否可以使用解析并连接到该服务器

ssh -T auser@myserver-Dell-System
假设您已经生成了一个公共/私有ssh密钥对,并首先将您的公钥添加到
~auser/.ssh/authorized_keys
文件中。

请参阅“”

步骤1:确保可以ping机器的IP地址。步骤2:确保其名称通过DNS解析(ping其主机名)。步骤3:确保您可以通过SSH连接到机器。那么git应该可以工作了。设置服务器和配置网络是离题的。哦,好的,我明白了。对不起,这篇离题文章;也许这就是这篇文章被否决3次的原因。我试试你要的mentioned@David47295这是关于主题的(我已经回答了很多关于类似主题的问题),但是评论员对git标签没有经验,也没有见过这样的问题。所以在他们看来,这是“离题的”。