pysftp
pysftp is an easy to use sftp module that utilizes paramiko and pycrypto.
support/user list
http://groups.google.com/group/pysftp
changes
0.2.2 The following methods were added:
- chdir(path) - change the current working directory on the remote
- getcwd() - return the current working directory on the remote
- listdir(path='.') - return a list of files for the given path
quick start
import pysftp
srv = pysftp.Connect('www.yoursever.com')
srv.execute('ls -al')
srv.get('thefile.txt')
srv.put('anotherfile.txt')
srv.close()features
- gracefully handles both RSA and DSS private key files automatically
- Supports encrypted private key files.
- logging can now be enabled/disabled
- now supports easy_install -- easy_install pysftp
- listed on PyPI http://pypi.python.org/pypi/pysftp
Connection parameters
Arguments that are not given are guessed from the environment.
| parameter | description |
| host | The Hostname of the remote machine. |
| username | Your username at the remote machine.(None) |
| private_key | Your private key file.(None) |
| password | Your password at the remote machine.(None) |
| port | The SSH port of the remote machine.(22) |
| private_key_pass | password to use if your private_key is encrypted(None) |
| log | log connection/handshake details (False) |