Pysvn with svn + ssh

I work with pysvn and I am trying to find a decent way to handle repositories accessible only through svn + ssh. Obviously, SSH keys make this incredibly simple, but I cannot guarantee that the end user will use the SSH key. This should also be done without user interaction as it will do svn parsing.

The big problem is that with svn + ssh, an interactive prompt is issued for authentication. Obviously, I want pysvn to automatically log in with a set of credentials, but set_default_username and set_default_password do not do me any good in this regard. If I didn’t have this, I would at least just want to fail and register a message to let the user configure the SSH key. However, set_interactive does not seem to have anything to do with this, and I'm still asking for a password with client.log ('svn + ssh: // path').

Any thoughts on how to solve this problem? Is there any way to handle this without SSH keys, since SSH throws hints?

+4
source share
1 answer

Check the ssh PasswordAuthentication configuration parameter.

I'm not sure how pysvn interacts with ssh, but if you set it to no ~ / .ssh / config (or maybe a global configuration?), Then it should not ask for a password.

+2
source

All Articles