Wednesday, June 18, 2008

FTP and SFTP

Setting up FTP server on Ubuntu

sudo apt-get install proftpd gproftpd
*gproftpd is the GUI module for proftpd

Configure the default ftp directory through
sudo gedit /etc/proftpd/proftpd.conf
This is basically the configuration file for proftpd. Reminder to check tie user login to their home directory if need be.
To enable anonymous / general login, need to setup a generic ftp login for all users of the system. *anonymous login does NOT require password. We can also the read and write permission for each directory in this file.


sudo /etc/init.d/proftpd restart


Access Control List for FTP
/etc/ftpusers
/etc/ftphosts
/etc/ftpaccess
*ftphosts -> can use ip domain range or *.domainname.com

Enhanced security. Since authentication protocol for FTP is in plaintext, we should enable TLS/SSH login through SFTP to encrypt username and passsword for ftp logins.




Reference
http://ubuntuforums.org/showthread.php?p=429783

No comments: