Tuesday, October 4, 2016

very quick way to setup ftp server for testing

1- pyftpdlib is a python library to install using the following command
$ sudo pip install pyftpdlib

2- run it using the following command
$  python -m pyftpdlib 

by default it
- listen on port 2121
- read only
- anonymous login
- root directory is the working directory

3- if you want to change port to port 21, allow read and write access, and change the root directory, use the following command
$ mkdir ftproot
$ sudo  python -m pyftpdlib -w -p 21 -d ftproot/

- snapshot of pyftpdlib's logging, when uploading file

No comments:

Post a Comment