简体   繁体   English

将存储库从本地git服务器克隆到AWS Ubuntu

[英]Cloning repository from local git server to AWS Ubuntu

I have a git server which is a CentOS server machine where repositories are already available. 我有一台git服务器,这是一台CentOS服务器计算机,其中的存储库已经可用。 There is one AWS Ubuntu server where would like to clone repository from above CentOS git server. 有一个AWS Ubuntu服务器要从上面的CentOS git服务器克隆存储库。 Now while use git clone command, getting below error: 现在,当使用git clone命令时,出现以下错误:

ssh_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.

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

Git Command: 'git clone ssh://@:22/repository1' Git命令:'git clone ssh:// @:22 / repository1'

Please help to resolve the issue? 请帮忙解决问题?

Note: If the similar question is already available, please share the link. 注意:如果类似问题已经存在,请共享链接。

Are you able to SSH to other servers successfully? 您可以成功SSH到其他服务器吗? If you can't then I would suspect a network configuration issue - egress traffic blocked either by security group, IP tables, or a proxy. 如果不能,那么我会怀疑网络配置问题-出口流量被安全组,IP表或代理阻止。

If you can SSH elsewhere then I suspect there is a firewall on the Git server that is blocking your IP address. 如果您可以在其他地方使用SSH,那么我怀疑Git服务器上存在防火墙正在阻止您的IP地址。 Any further info that you can provide will also help diagnose the issue. 您可以提供的任何其他信息也将有助于诊断问题。

Let me share the solution which is applied this time. 让我分享这次应用的解决方案。

Added sshd <Clinet IP> in /etc/hosts.allow file of Git server. 在Git服务器的/etc/hosts.allow文件中添加了sshd <Clinet IP>

And Cloning is okay now. 现在可以克隆了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM