You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're connecting as a client, which SSH server are you connecting to?
OpenSSH v9.4.0
If you're using paramiko as part of another tool, which tool/version?
No response
What are you trying to do with paramiko?
I am attempting to implement a server-side file copy operation using Paramiko. The goal is to copy files on the remote server from one location to another without having to transfer the data to the client side.
How are you trying to do it, and what's happening instead?
I have explored the existing Paramiko documentation and examples, but I couldn't find clear guidance on how to implement server-side file copy operations. Specifically, I want to add a custom extension or hook to Paramiko that supports a "copy-file" operation.
Here are my observations of the source code:
in paramiko\sftp.py, line 161, there's a check-file extension pair declared.
extension_pairs= ["check-file", "md5,sha1"]
I tried to change it to ["copy-file", "md5,sha1"] and ["copy-file", "md5,sha1"], but it seems to be not working.
So I doubt that should not be the proper way to add extension. But I can't find the documentation describe how to do it.
Thanks to anyone that can guide me to the right path.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Are you using paramiko as a client or server?
Server
What feature(s) aren't working right?
SFTP
What version(s) of paramiko are you using?
3.3.0
What version(s) of Python are you using?
3.9.11
What operating system and version are you using?
Windows 11
If you're connecting as a client, which SSH server are you connecting to?
OpenSSH v9.4.0
If you're using paramiko as part of another tool, which tool/version?
No response
What are you trying to do with paramiko?
I am attempting to implement a server-side file copy operation using Paramiko. The goal is to copy files on the remote server from one location to another without having to transfer the data to the client side.
How are you trying to do it, and what's happening instead?
I have explored the existing Paramiko documentation and examples, but I couldn't find clear guidance on how to implement server-side file copy operations. Specifically, I want to add a custom extension or hook to Paramiko that supports a "copy-file" operation.
Here are my observations of the source code:
in paramiko\sftp.py, line 161, there's a check-file extension pair declared.
I tried to change it to
["copy-file", "md5,sha1"]
and["copy-file", "md5,sha1"]
, but it seems to be not working.So I doubt that should not be the proper way to add extension. But I can't find the documentation describe how to do it.
Thanks to anyone that can guide me to the right path.
Anything else?
No response
The text was updated successfully, but these errors were encountered: