12 points more, wipe! It's not easy to be a yard farmer!
System: Ubuntu16.04
Installation: FTP
Steps:
1. Whether or not you come up to me first uninstall: sudo apt-get purge vsftpd
2. Reinstall:sudo apt-get install vsftpd
3. Create an FTP User:
Create a user directory sudo mkdir/home/uftp
Create user sudo useradd -d/home/uftp -s/bin/bash uftp
Modify password sudo passwd uftp# Here you will be prompted to enter the password two times
4 Configuring Vsftpd.conf :
sudo gedit/etc/vsftpd.conf
Configuration content:
userlist_deny=NOuserlist_enable=YES#允许登录的用户userlist_file=/etc/allowed_usersseccomp_sandbox=NO#默认ftp下载目录local_root=/home/uftp/
local_enable=YES#设置文件上传write_enable=YES#使用utf8utf8_filesystem=YES
Use Gedit to create a new/etc/allowed_users file-----* * * IMPORTANT step don't forget. Or we can't land.
Open "Terminal Window", enter "sudo gedit/etc/allowed_users"-and enter uftp--> save, the file is created successfully.
Use Gedit to view content in a/etc/ftpusers file
Open "Terminal Window", enter "sudo gedit/etc/ftpusers"--Return to open this file, see if there is no uftp this username, if not, just exit. If any, delete uftp, because this file is logged in the user list that cannot access the FTP server.
This is almost the case, you need to restart the FTP or start the next
SUDO/ETC/INIT.D/VSFTPD start
SUDO/ETC/INIT.D/VSFTPD Stop Stop
SUDO/ETC/INIT.D/VSFTPD Restart Restart
Browser access
ftp://127.0.0.1
Or
Ftp://localhost
Use actual IP ftp://your_ip for remote access
Note: This time I stepped on the pit, I want to see my IP. After I input ifcofig, incredibly ethernet that does not appear IP:
The solution came:
1. Update the IP address with sudo dhclient eth0 first
2. Then run the sudo ifconfig eth0
3.reboot
The pit also solved, this time we need to remotely connect this FTP.
Download Install WINSCP, run winscp--> input IP, user name, password--Save password--check "Save Passwords"--------Log on successfully
It's OK.
Dream must have. In the event of
Installing the FTP server in Ubuntu and stepping on the pit yourself.