NBGit to remote host with ssh

前端 未结 1 727
深忆病人
深忆病人 2020-12-07 04:58

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

相关标签:
1条回答
  • 2020-12-07 06:04

    The URL should be:

    git@myserver:/myreppo
    

    enter image description here

    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
    
    0 讨论(0)
提交回复
热议问题