试图克隆git - 项目名称不正确? [英] Trying to clone git - is project name incorrect?

查看:108
本文介绍了试图克隆git - 项目名称不正确?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  git clone ssh:// user @ host:port / project_folder.git 
git clone ssh:// user @ host:port / project_folder / origin.git

你好!
我想克隆远程存储库
并总是获取错误:

lockquote

克隆到'origin'中。ssh:连接到主机_my_host端口_my_port:
连接超时致命:无法从远程存储库读取。
请确保您拥有正确的访问权限并存在存储库


连接途径使用公钥/私钥的ssh是成功的
,但在这种情况下,它会询问密码



git不要求密码短语

请帮助我了解我在做什么错误....(
A. git不使用ssh密钥?
B. git使用它,但语法错误,我们是否应该为passphrase指定参数?
C.项目名称是错误的?所以如何获取正确的项目名称?

远程存储库不是github项目。



!!!!!!!!!
**已经找到决策:问题是在Git远程访问这个回购站的限制访问中徘徊,为什么GIT没有显示出这样的错误的明确原因..谢谢你为感谢你的好回答,关注其他问题。**



不知道选择哪个答案作为决定,你是什么想一想吗?

解决方案


这是一个远程服务器,客户端让我用ssh访问ssh -keys,git repo位于子文件夹中。该存储库有自己的远程来源(git status)。


如果您知道远程服务器上的回购路径,可以尝试在本地计算机上使用,URL:

  ssh:// user @ host:port / full / path / to / repo.git 

假设文件夹 / full / path / to / repo上有一个裸回购.git 在远程服务器上。

而且它可以让用户进行远程会话。



OP确认:


问题出在git远程访问此回购的受限访问上。



git clone ssh://user@host:port/project_folder.git
git clone ssh://user@host:port/project_folder/origin.git

Hello! I'm trying to clone remote repository AND always GET ERROR:

Cloning into 'origin'... ssh: connect to host _my_host port _my_port: Connection timed out fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

connecting via ssh with public/private key is successfull but in that case it asks the passphrase

git does not ask the passphrase

Please, help me understand what i'm doing wrong ....(
A. git does not use ssh key? B. git uses it, but syntax is wrong, should we specify parameter for passphrase? C. project name is wrong? so how to get correct project name??

Remote repositary is not github project.

!!!!!!!!! **DECISION HAS BEEN FOUND: problem is at restricted access for git remote access to this repo. Wandering, why GIT doesn't show explicit reason of such error.. THANK YOU GUYS. THANKS FOR YOUR GOOD ANSWERS, ATTENTION TO OTHER'S QUESTIONS. **

Don't know which of answers to check as decision. What do you think about it?

解决方案

It is a remote server, client have given me ssh access with ssh-keys, git repo is located in subfolder. And that repository has its own remote origin (git status). ssh connection succeeds.

If you know the path of that repo on the remote server, you can try and use, from your local machine, the URL:

 ssh://user@host:port/full/path/to/repo.git

This assume there is a bare repo at the folder /full/path/to/repo.git on the remote server.
And that it is accessible to the user making the remote session.

The OP confirms:

problem is at restricted access for git remote access to this repo.

这篇关于试图克隆git - 项目名称不正确?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆