One Line FTP Server

If you are looking for a Python solution, check out pyftpdlib.

You can install it using e.g. pip:

pip install pyftpdlib

then run it like this:

python -m pyftpdlib

This runs the anonymous-writable FTP server at localhost, port 2121 by default, serving files from the current directory (i.e. from wherever you started it). To login, use anonymous as both username and password.

Obviously, this is very insecure, so you would have to take that into account - if you want anything more then a toy or something to work with in development etc., use a proper FTP server as others mentioned.

Tags:

Linux

Ftp

Bash