[Tutor] sftp get single file

Sander Sweers sander.sweers at gmail.com
Mon Jul 20 23:57:57 CEST 2009

Please reply to the list.

2009/7/20 Matt Herzog <msh at blisses.org>:
> Yeah. I have no idea if I am able to do this. The jail makes it ambiguous.

There is no difference, the jail just moves the root directory as seen
by the client.

Did you do as suggested earlier to use listdir()? This will tell you
how paramiko sees the server.

I get the feeling you are in on over your head on this. Maybe you need
to read the paramiko docs and play around in idle or other interactive
python interpreter. The SFTPClient has all the basic commands any ssh
client has (listdir, chdir etc). See [1].

Also have a look at [2] which is a good example of what can be done.


[1] http://www.lag.net/paramiko/docs/paramiko.SFTPClient-class.html
[2] http://code.activestate.com/recipes/576810/

More information about the Tutor mailing list