Home » Categories » Multiple Categories

What is FTP and How Is It Used?

What is FTP?

FTP is a way to transfer files between hosts over the internet. It is especially helpful as a way to upload or download files to or from a site quickly. FTP clients allow connections from both anonymous and registered users. When the goal is to limit who can perform the file transfer, the log in is often set up to require a username and password, while content that is meant to be distributed widely is often set up with an anonymous FTP login.

How to Install FTP?

FTP is very easy to install on a virtual private server. Most FTP servers have very practical and usable defaults. Since FTP was not conceived as a very secure protocol, for example the text is not encrypted, you can increase the security after installation by disabling anonymous login and chrooting your registered users into their own directories.

There is an large variety of FTP programs that can be installed on server . Two that we find useful are ProFTPD or VSFTPD, and you can see how to download and configure them here, selecting whichever one you prefer.

VSFTPD on Ubuntu 12.04
VSFTPD on CentOS 6
ProFTPD on Ubuntu 12.04
ProFTPD on Centos 6

Next Steps:

Once you have an FTP client installed and configured on your virtual server, you can connect to it through the browser or the command line. Access on the command line is fairly simple, with the user required to type in:
ftp example.com
The prompt asks for a login and password, if you are doing an anonymous login, type in anonymous, and fill out the password with your email address. Once you connect, you can use the following commands to begin transferring files between machines:

put: copies the file from the local to the remote server
mput: copies multiple files from the local to the remote server
get: retrieves the file from the remote server and downloads it on the local machine
mget: retrieves multiple files from the remote server and downloads them to the local machine
ls: list the files in the current directory
cd: change the directory on the remote server
help: provides a list of available commands
pwd: provides you with the pathname of remote computer’s directory
delete: deletes a file on the remote server
mdelete: deletes multiple files on the remote server
exit: closes the FTP connection

Alternatively, to access a remote ftp server in your browser, type its address into the address bar. It should look like this:
ftp://example.com
If you prefer to avoid the command line for most of your FTP work, you can download Filezilla, an open-source FTP client and server.
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
How To Use the Pyramid Framework To Build Your Python Web App on Ubuntu
Viewed 2482 times since Sat, Jan 4, 2014
How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Arch Linux
Viewed 2875 times since Fri, Dec 27, 2013
How To Set Up MySQL Master-Master Replication
Viewed 1353 times since Thu, Dec 26, 2013
How To Create Nagios Plugins With Bash On Ubuntu 12.10
Viewed 1071 times since Sat, Jan 4, 2014
How To Manage Content Using the Ghost Blogging Platform
Viewed 1615 times since Sun, Dec 29, 2013
The Basics of Using the Sed Stream Editor to Manipulate Text in Linux
Viewed 1284 times since Fri, Dec 27, 2013
How To Set Up ProFTPD on CentOS 6
Viewed 1421 times since Thu, Jan 2, 2014
How To Use a Simple Bash Script To Restart Server Programs
Viewed 1606 times since Fri, Dec 27, 2013
How To Install Linux, Nginx, MySQL, PHP (LEMP) Stack on Debian 7
Viewed 1949 times since Fri, Dec 27, 2013