This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269238 - Netbeans ignoring .ssh/id_rsa, reading deprecated .ssh/id_dsa
Summary: Netbeans ignoring .ssh/id_rsa, reading deprecated .ssh/id_dsa
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-05 14:19 UTC by kolorafa
Modified: 2016-12-14 18:03 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kolorafa 2016-12-05 14:19:48 UTC
It would be nice if netbeans did look for 

Product Version: NetBeans IDE 8.2 (Build 201609300101)

Netbeans ignores .ssh/id_rsa but looks for .ssh/id_dsa and .ssh/config.

#strace -ffp 20724 2>&1|grep ssh
[pid 24541] stat(".../.ssh/config",  <unfinished ...>
[pid 24541] open(".../.ssh/id_dsa", O_RDONLY) = -1 ENOENT (No such file or directory)

Workaround:
ln -s ~/.ssh/id_rsa ~/.ssh/id_dsa
Comment 1 kolorafa 2016-12-14 18:03:15 UTC
Strange ...

It's not that it ises id_dsa ... it look for id_dsa only for that one project.
Other project (different git repository) it does try to open both id_rsa and pub O_o but don't use them to connect to git repository ...

So even when he opens it, he doesn't use them?


[kolorafa@kolorafa-msi-arch .ssh]$ strace -e trace=open -ff netbeans 2>&1|grep "/home/kolorafa"|grep "ssh"
[pid 19457] open("/home/kolorafa/.ssh/config", O_RDONLY) = 269
[pid 19457] open("/home/kolorafa/.ssh/known_hosts", O_RDONLY) = 271
[pid 19457] open("/home/kolorafa/.ssh/id_rsa", O_RDONLY) = 271
[pid 19457] open("/home/kolorafa/.ssh/id_rsa.pub", O_RDONLY) = 271
[pid 19457] open("/home/kolorafa/.ssh/id_dsa", O_RDONLY) = 271
[pid 19457] open("/home/kolorafa/.ssh/id_dsa.pub", O_RDONLY) = 271
[pid 19457] open("/home/kolorafa/.ssh/known_hosts", O_RDONLY) = 271
[pid 19457] open("/home/kolorafa/.ssh/known_hosts", O_RDONLY) = 302
[pid 19457] open("/home/kolorafa/.ssh/known_hosts", O_RDONLY) = 302


It works when I manually select id_rsa in the "Specify Git repository locaton" dialog ...


I see it remembers the key that is selected for the whole project somewhere for every submodule, strange behavior but better than selecting manually key for every submodule.