Configuring FTP Server under Ubuntu

Environment:
Ubuntu 14.04
flashFXP

Steps:

Open the "Terminal Window" and
enter "sudo apt-get update"
"Enter the administrator password of the currently logged in user" and press
Enter (if you do not run this command and install vsftpd directly, there will be "there are several software" The package cannot be downloaded, you can run apt-get update------" error prompt, which will cause the installation to fail.)

Open the "terminal window", enter "sudo apt-get install vsftpd"

to open the "terminal window", enter " sudo service vsftpd restart" to restart the vsftpd service
vsftpd is running, indicating that the installation is successful.


Open the "Terminal Window", enter "sudo mkdir /home/uftp" --> Enter --> Enter "sudo ls /home" --> Enter --> There is a uftp directory, and the directory is newly created successfully.

Open "terminal"
"sudo useradd -d /home/uftp -s /bin/bash uftp"
user created successfully
"sudo passwd uftp"
Set the password of the uftp user
Enter twice The
password is set successfully.


Open "Terminal"
"sudo gedit /etc/vsftpd.conf"
Open the vsftpd.conf file, add to the file
userlist_deny=NO
userlist_enable=YES
userlist_file=/etc/allowed_users
seccomp_sandbox=NO to save
"local_enable=YES in the file --exit" Open

"Terminal", sudo gedit /etc/allowed_users Enter uftp to save, the file is created successfully. Open "Terminal" After sudo gedit /etc/ftpusers opens this file, check to see if there is a user name of uftp, if not, exit directly. If so, delete uftp, because this file records the list of users who cannot access the FTP server. Download Install flashFXP, run WinSCP-->Enter IP, username, password-->Save-->Check "Save password"-->OK-->Login-->Login successful.














Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326447044&siteId=291194637