pysvn 用 svn+ssh 提示输入密码 [英] pysvn prompts for password with svn+ssh

查看:49
本文介绍了pysvn 用 svn+ssh 提示输入密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写 Python 应用程序,它使用 pysvn 来获取 svn 日志历史记录.它适用于 http://之类的 url,但对于 svn+ssh://我在命令行上提示输入密码!

I'm writing Python app which uses pysvn to get svn log history. It works ok for http:// like urls, but for svn+ssh:// I get prompted for a password on the command line!

我使用 callback_get_login 进行身份验证.

I use callback_get_login to authenticate.

svn+ssh svn repos 有什么办法可以避免提示并使用 pysvn 进行身份验证吗?

Is there any way to avoid the prompt and authenticate with pysvn for svn+ssh svn repos?

推荐答案

这是 svn+ssh 的正常行为.除非您部署了 SSH 密钥并使用该主机的用户名进行连接,否则您将遇到此问题.

This is the normal behavior for svn+ssh. Unless you have SSH Keys deployed and are connecting using the username for that host, you are going to have this issue.

不幸的是,经过一些研究,目前 PySVN 似乎不支持使用 SSH 密钥.

Unfortunately, after some research it looks like PySVN may not support the use of SSH keys at this moment in time.

这篇关于pysvn 用 svn+ssh 提示输入密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆