You are viewing the article How to Set Up an FTP Server on Ubuntu Linux at Lassho.edu.vn you can quickly access the necessary information in the table of contents of the article below.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 5,797 times.
This wikiHow teaches you how to set up and connect to an FTP server on a computer running Ubuntu Linux. FTP servers are useful in storing data from a computer and allowing others to browse through those files. To establish a connection from your computer, you need an FTP server. You also need to update to the latest version of Ubuntu.
Steps
Install FTP framework
- Open Terminal
- Type the command sudo apt-get upgrade and then press ↵ Enter .
- Enter the password and press ↵ Enter .
- Type y when it appears, then press ↵ Enter .
- Wait for the upgrade to complete the installation, then restart your computer if prompted.
- You can also press Alt + Ctrl + T to open Terminal.
- Enter the command sudo apt-get install filezilla
- Re-enter your password if asked.
- Wait for the installation to complete.
Configure FTP server
# Uncomment this to allow local users to log in.
, then remove the “#” sign from the local_enable=YES
line below. [2] X Research Source
- You can remove the “#” sign by using the arrow keys and selecting the letter before the pound sign (in this case, “l”) and then pressing the ← Backspace key.
- Skip this step if the line
local_enable=YES
does not have a pound sign.
# Uncomment this to enable any form of FTP write command.
, then remove the “#” sign from the write_enable=YES
line below.
- Skip this step if the
write_enable=YES
line does not have a pound sign.
# ASCII mangling is a horrible feature of the protocp.
, then remove the “#” sign from the following two lines:
-
ascii_upload_enable=YES
-
ascii_download_enable=YES
# chroot)
, then add the following lines:
-
user_sub_token=$USER
-
chroot_local_user=YES
-
chroot_list_enable=YES
- If any of the lines above already exist, simply remove the “#” in front of them.
(default fplows)
, then add the following lines:
-
chroot_list_file=/etc/vsftpd.chroot_list
-
local_root=/home/$USER/Public_html
-
allow_writeable_chroot=YES
- If any of the lines above already exist, simply remove the “#” in front of them.
# You may activate the "-R" option...
, then remove the “#” sign from the ls_recurse_enable=YES
line below. - Press Ctrl + X
- Enter y
- Press Enter
Add username to chroot list
- You can skip and go to the last step in this section if you don’t need to specify who can access the FTP server.
- Skip this step if the system does not ask you to enter a password.
Server Access
- If you’re keeping your own server on your computer and you’ll need your computer’s IP address, type the command ifconfig into the Terminal and see the “inet addr” number in the results.
- If “ifconfig” is not installed, you can enter the command sudo apt-get install net-tops into the Terminal to install it.
- The port forwarding process will vary depending on the router, you should refer to the relevant article or the router’s documentation for instructions.
- If you want to connect through Terminal, you can try entering the command ftp [address] . As long as the FTP server is working and you have Internet access, the system will try to connect to the server; however, you may not be able to upload files.
Advice
- Port 20 forwarding can solve some network problems if you are keeping your own server.
- The process of connecting to an FTP server on Ubuntu 17 and later versions will be slightly different from previous versions, so you will need to update Ubuntu to version 17.10 (or higher) if you have not already done so.
Warning
- FTP servers aren’t always secure, especially if you’re keeping your own server. Therefore, you should refrain from uploading personal/sensitive information to the FTP server.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 5,797 times.
This wikiHow teaches you how to set up and connect to an FTP server on a computer running Ubuntu Linux. FTP servers are useful in storing data from a computer and allowing others to browse through those files. To establish a connection from your computer, you need an FTP server. You also need to update to the latest version of Ubuntu.
Thank you for reading this post How to Set Up an FTP Server on Ubuntu Linux at Lassho.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: