Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sftp put file

import pysftp

srv = pysftp.Connection(host="www.destination.com", username="root",
password="password",log="./temp/pysftp.log")

with srv.cd('public'): #chdir to public
    srv.put('C:UsersXXXDropbox	est.txt') #upload file to nodejs/

# Closes the connection
srv.close()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #sftp #put #file
ADD COMMENT
Topic
Name
5+7 =