gpt4 book ai didi

python - 使用 python 脚本通过 SSH 连接到服务器

转载 作者:太空宇宙 更新时间:2023-11-04 04:24:46 25 4
gpt4 key购买 nike

我是一名处理大型数据集的天文学学生。我试图使用 python 脚本处理的 super 计算机上有 80 TB 的 .fits 文件。我可以通过提交作业(保持在队列中)来处理存储在 super 计算机上的数据 多年)或者我可以在我的本地桌面上处理数据(无需下载所有数据)。但是,由于存储问题,我无法将所有 (80TB) 数据下载到我的本地桌面。我想知道是否有办法在我的本地桌面上运行处理 python 脚本,但它使用安全 shell 从 super 计算机读取数据。

谢谢。

最佳答案

查看 Perform commands over ssh with PythonDownload files over SSH using Python How to list all the folders and files in the directory after connecting through sftp in python

你可以把它放在一个循环中并获取一个文件 > 解析它 > 获取下一个文件等等。

关于python - 使用 python 脚本通过 SSH 连接到服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53716905/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com