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 186752 - Can't connect to Subversion repository via svn+ssh on Mac OS X 10.6
Summary: Can't connect to Subversion repository via svn+ssh on Mac OS X 10.6
Status: RESOLVED WORKSFORME
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P1 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 15:12 UTC by nadobnykh
Modified: 2010-05-28 12:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log after attempt to connect to svn via svn+ssh (61.62 KB, application/octet-stream)
2010-05-27 08:28 UTC, nadobnykh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nadobnykh 2010-05-26 15:12:36 UTC
if trying connect via svn+ssh, following exception is thrown:

opens window: "SVN Command Failed"

SVN command returned with the following error:
--------------
ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
Permission denied (publickey,keyboard-interactive).
Network connection closed unexpectedly
--------------
button: "OK" ;)


--------------------------------------------

It would be nice to have a svn client that communicates directly with command line... or as option...
Comment 1 Tomas Stupka 2010-05-26 15:16:12 UTC
could you please reproduce the problem and attach your messages.log to the issue? 

thanks
Comment 2 nadobnykh 2010-05-26 16:35:14 UTC
sorry, but messages.log in my user folder  is empty, or what massages.log do you mean?

(In reply to comment #1)
> could you please reproduce the problem and attach your messages.log to the
> issue? 
> 
> thanks
Comment 3 Tomas Stupka 2010-05-26 16:40:39 UTC
http://wiki.netbeans.org/FaqLogMessagesFile
Comment 4 nadobnykh 2010-05-27 08:28:43 UTC
Created attachment 99525 [details]
messages.log after attempt to connect to svn via svn+ssh
Comment 5 Tomas Stupka 2010-05-27 12:11:08 UTC
the reported error was returned by your svn commandline client - there seems to be something with the ssh configuration on your box and i'm afraid there is nothing we could about it. 

see also http://wiki.netbeans.org/FaqSubversionSSH for more information how to setup svn+ssh with netbeans - maybe it will help.
Comment 6 nadobnykh 2010-05-27 14:29:21 UTC
...but connecting via command line works without problems, the ssh_askpass will be used by any graphical svn clients, but this file is not present in mac osx 10.6.
i have tried to create a /usr/libexec/ssh_askpass script, but it doesn't worked (after password prompt no effect).

how can i see the formed/executed command ( svn checkout svn+ssh://uri.to.the.repo ) ???



(In reply to comment #5)
> the reported error was returned by your svn commandline client - there seems to
> be something with the ssh configuration on your box and i'm afraid there is
> nothing we could about it. 
> 
> see also http://wiki.netbeans.org/FaqSubversionSSH for more information how to
> setup svn+ssh with netbeans - maybe it will help.
Comment 7 nadobnykh 2010-05-27 14:54:45 UTC
In svn+ssh (or any svn+*) url type, there is no possibility to enter the username and password (but tunnel command  for private/public key pair only). its not ok, because i can login via svn+ssh  with my username and password in the terminal. 

furthermore it should be possible to save the repository connection as uri/login/pass -item. Each graphical svn client can that.

A GOOD EXAMPLE is the "https://"   svn url type!!!

sorry for my bad english))

best regards
nadobnykh


(In reply to comment #5)
> the reported error was returned by your svn commandline client - there seems to
> be something with the ssh configuration on your box and i'm afraid there is
> nothing we could about it. 
> 
> see also http://wiki.netbeans.org/FaqSubversionSSH for more information how to
> setup svn+ssh with netbeans - maybe it will help.
Comment 8 Ondrej Vrabec 2010-05-28 06:47:43 UTC
> but connecting via command line works without problems
So you may have configured the tunnel command differently in netbeans and on commandline. Could you check and compare the tunnel commands (ssh = ... in section [tunnels]) in ~/.subversion/config (for running svn in commandline) and in ~/.netbeans/6.9rc/config/svn/config/config *RIGHT AFTER THE FAILED COMMAND*

Please explain how you provide the credentials when you run the command in commandline. Are you prompted for them right in commandline or does any graphical window pop up?

> In svn+ssh (or any svn+*) url type, there is no possibility to enter the
> username and password (but tunnel command  for private/public key pair only).
There is not. Subversion client (svn executable) itself starts ssh as an external command and there is no way how to pass the credentials to the command from netbeans (ssh has no password parameter).
Comment 9 Tomas Stupka 2010-05-28 07:21:32 UTC
> > In svn+ssh (or any svn+*) url type, there is no possibility to enter the
> > username and password (but tunnel command  for private/public key pair only).
> There is not. Subversion client (svn executable) itself starts ssh as an
> external command and there is no way how to pass the credentials to the command
> from netbeans (ssh has no password parameter).
in other words - if you have to authenticate yourself via an commandline prompt then, unfortunately,  there is technically no way for us how to get your setup running from netbeans. Again - see http://wiki.netbeans.org/FaqSubversionSSH for information how to setup svn+ssh with an sshagent from netbeans.

> how can i see the formed/executed command ( svn checkout
> svn+ssh://uri.to.the.repo ) ???
you might try to run netbeans with the switch 
-J-Dorg.netbeans.modules.subversion.level=500 

one more question - how do you start NetBeans? Starting an application from e.g a shortcut on osx causes that it's environment settings are different as whenstarted from the commandline. That could eventually explain the "Permission denied" error you got.
Comment 10 nadobnykh 2010-05-28 08:32:59 UTC

(In reply to comment #8)
> > but connecting via command line works without problems
> So you may have configured the tunnel command differently in netbeans and on
> commandline. Could you check and compare the tunnel commands (ssh = ... in
> section [tunnels]) in ~/.subversion/config (for running svn in commandline) and
> in ~/.netbeans/6.9rc/config/svn/config/config *RIGHT AFTER THE FAILED COMMAND*

subversion-config:    ssh = $SVN_SSH ssh -o ControlMaster=no
netbeans-svn-config : ssh = $SVN_SSH ssh -o ControlMaster=no -l kna      
(tried to add my username, but its always the same...)

> Please explain how you provide the credentials when you run the command in
> commandline. Are you prompted for them right in commandline or does any
> graphical window pop up?

I do the following in the command line 
(no graphical window, only terminal):
--------------------------------------------------
dev10:~ kna$ svn checkout svn+ssh://uri.to.repo/trunk [ENTER]
Password: [INPUT PASSWORD]
Killed by signal 15.
Password: [INPUT PASSWORD AGAIN]
A ... [DOWNLOADING FILES].......
Checked out revision 40.
Killed by signal 15.
dev10:~ kna$
--------------------------------------------------
(as you can see, i have to input the password twice!)

i have tried to start NB over command line, indeed, on checkout it prompts me ti enter password in the terminal, but gives the feedback (Killed by signal 15) in the graphical window of NB and cancels connection.

> > In svn+ssh (or any svn+*) url type, there is no possibility to enter the
> > username and password (but tunnel command  for private/public key pair only).
> There is not. Subversion client (svn executable) itself starts ssh as an
> external command and there is no way how to pass the credentials to the command
> from netbeans (ssh has no password parameter).

i refer to the svn client implementation of Zend Studio (i think they have an own integrated copy of svn client), but it works!
a working svn+ssh support is a decision criterion (after Zend Framework support) for our leader!

thanks in advance)
Comment 11 Tomas Stupka 2010-05-28 10:36:30 UTC
> subversion-config:    ssh = $SVN_SSH ssh -o ControlMaster=no
> netbeans-svn-config : ssh = $SVN_SSH ssh -o ControlMaster=no -l kna      
> (tried to add my username, but its always the same...)
from what you reported until now, i don't think this would help us much further, so just for the record - in case you directly tried to edit  netbeans-svn-config it probably won't have any effect as that file is regularly regenerated by netbeans. Use instead the tunnel command text field in the netbeans ui, if you wan't to change the contents in the netbeans-svn-config file.

> > Please explain how you provide the credentials when you run the command in
> > commandline. Are you prompted for them right in commandline or does any
> > graphical window pop up?
> I do the following in the command line 
...
> (as you can see, i have to input the password twice!)
again, ssh_agent should be a way for you. As soon as the commandline cliet starts to prompt for u/p  we loose control and we are in a scenario which we, due to technical limitations, aren't able to support from NetBeans. Did you try to setup your environment as described in http://wiki.netbeans.org/FaqSubversionSSH? We already mentioned that page a couple of times in this issue, but you haven't reacted yet. For now we consider this issue as "worksforme", as the ssh_agent workaround seems to work fine on mac. 

Agree, it isn't a nice solution, but due to how the commandline client works, we have no other way how to provide the ssh u/p to the svn client. 

> i refer to the svn client implementation of Zend Studio (i think they have an own integrated copy of svn client), but it works!
> a working svn+ssh support is a decision criterion (after Zend Framework support) for our leader!
well, the svnkit java library would provide a proper access to a svn from a java application, unfortunately, because of licensing reasons, it is not possible to use it from netbeans. see Issue #89497 for more information.
Comment 12 nadobnykh 2010-05-28 12:02:24 UTC
ok, i will give it a try ))
thank you very much for your responsibility and help!))