---
Code
--
remotepath = "/incoming"
f = FTP(host)
f.login(username,password)
f.cwd(remotepath)
localfile ="C:\\test.txt"
fd = open(localfile,'rb')
path,filename = os.path.split(localfile)
f.storbinary('STOR %s' % filename,fd)
fd.close()
f.quit
By the way...
test.txt does exist
Disclaimer
This e-mail and any attachments is confidential and intended solely for the use
of the individual(s) to whom it is addressed. Any views or opinions presented
are solely those of the author and do not necessarily represent those of
Waterstone Capita
I am using paramiko to do an SFTP file transfer... I was able to connect
to the remote server using an SFTP client I have just to make sure
that username and password are working.. But when i try to connect
using this script it fails
**hostname, username and password are declared.
#
I am using paramiko to do an SFTP file transfer... I was able to connect
to the remote server using an SFTP client I have just to make sure that
username and password are working.. This is the code.
# now, connect and use paramiko Transport to negotiate SSH2 across
the connection
soc
= threading.Event()
t.auth_password(username=username, password=password, event=event)
event.wait()
if not t.is_authenticated():
print "not authenticated"
output:
not authenticated
On Jan 16, 11:11 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> 20
On Jan 16, 11:38 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>:
>
>
>
> > # now, connect and use paramiko Transport to negotiate SSH2 across
> > the connection
> > sock = socket.socket(sock
On Jan 16, 12:22 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>:
>
>
>
> > On Jan 16, 11:38 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> > > 2008/1/16, Tarun Kapoor <[EMAIL PRO
On Jan 16, 1:56 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>:
>
>
>
> > On Jan 16, 12:22 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote:
> > > 2008/1/16, Tarun Kapoor <[EMAIL
anks !!
Tk
-Original Message-
From: Guilherme Polo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 16, 2008 11:12 AM
To: Tarun Kapoor; python-list@python.org
Subject: Re: paramiko
2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>:
>
>
>
>
> I am using paramiko to do an SFTP file trans
from paramiko.common import *
File "C:\Python23\lib\paramiko\common.py", line 98, in ?
from osrandom import OSRandomPool
File "C:\Python23\lib\paramiko\osrandom.py", line 54, in ?
raise ImportError("Cannot find OS entropy source")
ImportError: Cannot find OS ent
10 matches
Mail list logo