A working code to upload a file using sftp? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Networking (https://python-forum.io/forum-12.html) +--- Thread: A working code to upload a file using sftp? (/thread-40974.html) |
A working code to upload a file using sftp? - Python_FTP - Oct-23-2023 Can anyone share a presently working Python code that uploads a local file to a publicly accessible FTP server for testing purposes? I have tried several codes published in various web pages, and each time some exception was raised. RE: A working code to upload a file using sftp? - gulshan212 - Nov-06-2023 Well, I found too many codes for the same thing, can you try the below code, I hope you can get an idea of what you are looking for. Quote:from ftplib import FTP Thanks RE: A working code to upload a file using sftp? - Gribouillis - Nov-07-2023 Usually, I just spawn a subprocess that calls the lftp command. RE: A working code to upload a file using sftp? - Pedroski55 - Nov-29-2023 Why not just use Filezilla? Filezilla uses sftp. When I make my pathetically simple little webpages, I always make them and test them on this laptop. When everything works the way I want, I upload with Filezilla! Unless you are are serial uploader!?! |