NBGit to remote host with ssh

二次信任 提交于 2019-11-26 22:11:46

问题


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


回答1:


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


来源:https://stackoverflow.com/questions/5357232/nbgit-to-remote-host-with-ssh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!