I`m trying to upload on save on a sFTP account and netbeans gives me the "Auth failed" error.
My private key is saved directly from ubuntu(where I set up the SFTP). I tested the connection with SmartFTP and WinSCP
and it works perfectly. I tried saving the key to a Windows compliant file and it does the same.
My private key is a DSA one and has a pass-phrase. If i leave the password field empty i`m not prompted for password or
for other information.
This bug happens from the version on all version >6.7, i tried the nightly build as well.
Please help me if i`m doing something wrong or if it`s a bug fix it.
Thank you very much!
Reporter, could you please provide exact steps to reproduce? That would help us a lot.
Filipe, could you please then try to reproduce? Thanks.
Here are the steps:
1. File > New Project. Next. Next. I end up at Run Configuration. I choose Remote Website(FTP,SFTP) then i hit Manage.
2. I give a connection name(Test Server) and i choose SFTP. Then i fill up hostname, i change the port because my ssh
server is running on a different port. I fill up username, i leave password empty and at private key file I browse to my
desktop where the id_dsa file is exactly as my ssh-keygen -t dsa command created it in ubuntu.
3. At known hosts file i leave the field blank.
4. At initial directory i put my /home/username path
5. Hit test
6. RSA key fingerprint - hit yes.
7. Cannot connect to server myserver.name (Cause: Auth fail)
Could you please start NetBeans with:
do the steps again and then attach (do NOT copy & paste please) the IDE log (can be found in <netbeans-
Thanks a lot.
Sorry i didn`t understand where the log is.
In my mail there was only this: (can be found in <netbeans-
it's in <userdir>/var/log/messages.log. Path to userdir is shown in Help -> About in IDE. Thanks.
Created attachment 84458 [details]
Thanks for the log file, unfortunately there's not much information there. We will try to reproduce your problem.
Thanks for reporting.
Theoretically if you try to connect to a sFTP with a private key using Netbeans 6.7 final on Windows 7 it won`t work and
throw you the Auth failed error.
If you manage to reproduce the bug please send me an email!
thanks Bogdan, I'll do my best to reproduce it today.
I have confirmed the same issue on Mac OSX. I attempted the exact same steps as hurrycane with the same result. I also
tried to get more information from the log file, but it looks the same as the one posted already. This is a significant
issue preventing the use of Netbeans (without an annoying work around).
Product Version: NetBeans IDE Dev (Build 2009-07-12_15-04-38 )
Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02
reproduced only for private keys with passphrase.
@reporters: do you get this error when using private key without passphrase?
I confirm that if my key doesn`t has a pass-phrase the sFTP connection works.
Can you tell us when this bug is going to be fixed ? - it`s stopping me from using netbeans as my primary IDE.
I will try to fix it for the nearest milestone. The problem could be that we are using 3rd party library so not sure
what is possible and what not. But this issue is definitely high on my todo list.
My key does not have a passphrase.
Integrated into 'main-golden', will be available in build *200907150249* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Tomas Mysik <email@example.com>
Log: #166555: sFTP continously prompts for password on upload
#168223: sFTP Private key problem on Windows 7
Forgot to close.
*** Issue 163345 has been marked as a duplicate of this issue. ***
this one can be ported to 6.7.1 already
The fix has been ported into the release67_fixes repository together with issue 166555 .
@reporter: don't hesitate if you face any other issue like this