Python 3.x 和 SFTP

发布于 2024-09-14 21:19:46 字数 265 浏览 7 评论 0原文

我知道 Python 2.x 存在 Paramiko api。是否有一种新兴方法可以在 Python 3.1 脚本中使用 SFTP 函数与远程服务器进行交互?对 paramiko 站点的广泛搜索没有发现 3.x 支持的证据。 如果没有,我将使用带有 Paramiko 的 Python-2.x 进行远程访问,或者仅使用 subprocess.popen() 或类似的 Python 3。

I know that the Paramiko api exists for Python 2.x. Is there an emerging method for interacting with a remote server using SFTP functions from within a Python 3.1 script? Extensive searching of the paramiko site uncovered no evidence of 3.x support.
If not, I will either use Python-2.x with Paramiko for my remote access, or maybe just use subprocess.popen() or similar with Python 3.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜柠檬 2024-09-21 21:19:46

我遇到了类似的问题,由于某种原因无法安装 paramiko(现在不记得了),并为 putty 的 SFTP 实现实现了一个包装器,它位于 python 2.x 中,但您也许可以从中获得一些参考价值它。

http://psftplib.googlecode.com/svn/trunk/psftplib.py

I had a similar issue with not being able to install paramiko for some reason (don't remember now), and implemented a wrapper for putty's SFTP implmentation, it's in python 2.x, but you may be able to get some reference value from it.

http://psftplib.googlecode.com/svn/trunk/psftplib.py

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文