Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5985

Netbeans cannot work with a remote git repository via ssh LocalForward

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.3, 12.4
    • None
    • versioncontrol - Git
    • None
    • Xubuntu 18.04

    Description

      I use Xubuntu 18.04.

       

      Step 1:
      I set the ssh connection settings ./ssh/config
      ======================================
      Host work.net
          HostName remote.work.ru
         User user_user
         Port 22
         Protocol 2
         ForwardX11 no
         ForwardAgent no
         Compression yes
         DynamicForward 7777
         LocalForward localhost:5555 gitlab.work.net:22

      Host gitlab.work.net
         HostName localhost
         Port 5555
         User user_user
         IdentityFile /home/user_user/.ssh/id_rsa
      ======================================

      gitlab.work.net - not available via the Internet.
      remote.work.ru - this is the entry point to the remote network via ssh.

       

      Step 2:

      I'm connecting

      $ ssh work.net

       

      Step 3:

      Next, I open Netbeans 12.4, launch the Team -> Git -> Clone.
      I set the repository URL as "gitlab.work.net:workphp/my_project.git" and username "git" and my private key file.
      I click "Next" and then I get an error "Incorrect credentials for repository at ssh://gitlab.work.net/workphp/my_project.git".
      If the Repository URL is changed to "ssh://localhost:5555/workphp/my_project.git", the connection works.

       

      The command in the Terminal "git clone git@gitlab.work.net:workphp/my_project.git" works correctly.
      Netbeans 8.2 works correctly with "gitlab.work.net:workphp/my_project.git"  (Netbeans 8.2 understand the host gitlab.work.net)!

      Why Netbeans 12.4 does not understand the host gitlab.work.net?

      Attachments

        Activity

          People

            Unassigned Unassigned
            gozoro Gozoro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: