Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pysftp
- try:
- pysftp.Connection(host='host',
- username='user',
- private_key_pass='passphrase',
- private_key='path/filename'
- )
- except Exception as e:
- print "Caught an error message: %s " % e
Add Comment
Please, Sign In to add comment