Answer the question
In order to leave comments, you need to log in
Why won't Netbeans 12 connect to git repository via ssh-tunnel?
I work in xubuntu 18.04 I
set ssh tunnel settings in ./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 directly accessible via the Internet.
work.net is an ssh entry point to a remote local network through the server remote.work.ru
Connect:
$ ssh work.net
Open Netbeans 8.2, launch Team -> Git -> Clone menu.
The Clone Repository window opens.
I set the path to the private key,
I set the Repository URL: gitlab.work.net:workphp/my_project.git I
click Next - everything works - there is a connection, I see the list of branches.
Next, I open Netbeans 12.4, launch the menu Team -> Git -> Clone.
The Clone Repository window opens.
I set the path to the private key, I
set the Repository URL: gitlab.work.net:workphp/my_project.git
I click Next - I get the error
Incorrect credentials for repository atssh://gitlab.work.net/workphp/my_project.git
At the same time, if the Repository URL is set as: ssh://localhost:5555/workphp/my_project.git , then everything starts working.
Naturally, everything works in the terminal.
Why can't Netbeans 12.4 see the gitlab.work.net hostname?
The problem is not only in cloning, but in general when working with Git from the Netbeans 12 git plugin.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question