I want to download sftp files from server A and save it in server B using python. Both the servers are linux machines. I tried sftp.get(), but that's only between server and local machine. So far I have not seen any solution online. Is it possible to move the files between two servers? Please help
Asked
Active
Viewed 388 times
0
-
See the very first example on the documentation: https://pypi.org/project/pysftp/ – Aug 03 '21 at 14:04
1 Answers
0
I'm not a Python developer, but I know how sftp works, and I don't think you can do what you are trying to do. The best way I can think is to do a sftp.get() to download the file from Server A to your local machine, and then an sftp.put() to upload it to server B

Adam Tommasi
- 1
- 2