scp module for python ?

Michele Simionato mis6 at pitt.edu
Tue Feb 11 12:07:02 EST 2003


"Gitte Wange" <gitte at babytux.dk> wrote in message news:<b2ad4u$1huh$1 at news.cybercity.dk>...
> On Fri, 07 Feb 2003 09:06:45 +0000, Michele Simionato wrote:
> 
> > "Gitte Wange" <gitte at babytux.dk> wrote in message news:<b203pf$2u8b$1 at news.cybercity.dk>...
> >> Hello,
> >> 
> >> I don't know if such a thing has been discussed at this list (I just
> >> subscribed) but I give at try :-)
> >> 
> >> I'm working on an application that should implement different protocols to
> >> transfer files to servers. On of those protocols is SSH (via scp).
> >> 
> >> Does there exist some sort of scp module for python or is there anyway to
> >> do it ?
> > 
> > This question comes more or less once a month, maybe should be in
> > the FAQ.
> > The simple-minded approach is to call the scp
> > command with os.system if you are on unix/linux,
> > or, if you are on Windows, download putty and
> > call pscp. 
> > pyssh was not working when I tried it months ago.
> > Good luck,
> 
> Well I also thought of calling the scp command with os.system but I want
> to use scp in a webapplication (for Zope) and then I need to feed the
> password to the scp command and I haven't been able to find out how to do
> that :-(
> Any hints on this ?

I remember I tried that and failed. Maybe there is somebody that can give
you the solution, as soon as the PEP 308 storm passes...  ;-) 


                                                 M.




More information about the Python-list mailing list