How to copy file from remote server over SSH using Paramiko Python? FileNotFoundError: [WinError 3] The system cannot find the path specified
How to copy file from remote server over SSH using Paramiko Python? FileNotFoundError: [WinError 3] The system cannot find the path specified
我收到以下错误 FileNotFoundError: [WinError 3] The system cannot find the path specified
路径确实有效,绝对。我确实看到了指定文件夹中的文件。
更新:
我交换了本地和远程路径,但仍然出现相同的错误:
我再次检查了远程服务器,该文件确实存在于服务器上:
如果您想将远程文件提取到本地系统,您应该使用 SFTP - GET 而不是 PUT(反之亦然)
关于 GET 的 Paramiko 文档
http://docs.paramiko.org/en/2.4/api/sftp.html#paramiko.sftp_client.SFTPClient.get
我收到以下错误 FileNotFoundError: [WinError 3] The system cannot find the path specified
路径确实有效,绝对。我确实看到了指定文件夹中的文件。
更新: 我交换了本地和远程路径,但仍然出现相同的错误:
我再次检查了远程服务器,该文件确实存在于服务器上:
如果您想将远程文件提取到本地系统,您应该使用 SFTP - GET 而不是 PUT(反之亦然)
关于 GET 的 Paramiko 文档 http://docs.paramiko.org/en/2.4/api/sftp.html#paramiko.sftp_client.SFTPClient.get