NBGit与ssh远程主机 [英] NBGit to remote host with ssh

查看:136
本文介绍了NBGit与ssh远程主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



使用NBGit从SSH服务器克隆一个git项目。我安装了NBGit,运行良好,但是在给出连接参数时,我不确定什么是正确的URL。



或者目前不支持?



NBGit 0.4 for NB 6.9.1 on Win7

解决方案

URL应该是:

  git @ myserver:/ myreppo 



但正如 issue 91 ,这可能不会奏效。

我将探讨 issue 56

在你的〜/ .ssh目录下创建一个config文件$ /

在文本编辑器中打开〜/ .ssh / config并放入以下内容:

 主机AHostName  - 这将是名称您将在nbgit 
中调用用户gituser
主机名SSH IP地址--eg 192.68.24.1 --my git服务器
端口1234 - 如果需要自定义端口,请使用
IdentityFile到您的私人ssh密钥的路径

从那里,url可以是:

  AHostName:myrepo 


I´m trying to get that working:

clone a git project from an ssh server with NBGit. I get NBGit installed, works well local, but when given the connection parameters I´m not sure what is the right URL.

Or maybe it is not supported at the moment?

NBGit 0.4 for NB 6.9.1 on Win7

解决方案

The URL should be:

git@myserver:/myreppo

But as reported in issue 91, that might not work very well.
I would explore the workaround presented in issue 56:

In your ~/.ssh directory, create a "config" file

open ~/.ssh/config in a text editor and put in the following:

Host AHostName -- this will be the name you will be calling in nbgit
User gituser
Hostname SSH IP address --eg 192.68.24.1 --my git server
Port 1234 -- use this if you need custom ports
IdentityFile "path to your private ssh key"

From there, the url can be:

AHostName:myrepo

这篇关于NBGit与ssh远程主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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