I have the following issue... i need to connect to sftp(vsftpd) through python script, upload a file and download it. So far i have created ftp server with vsftpd but i cannot connect. If i use the terminal(ftp localhost) i can log in without any problems. Please advise how i should proceed.
Here is my python script: http://codepaste.net/omysxu
and here is the config file of vsftpd: http://codepaste.net/1qrrdf
The thing that i am trying to do is.. set up a ftp server, then i should have 2 scripts(or 1) which will have to upload file via ssh then download it in another dir.