ubuntu16.04 open FTP service

Configuring ftp

1. Install vsftpd server

sudo apt install vsftpd

 

2. Create a ftp folder (skip)

sudo mkdir /home/ftp

 

3. New users ftp, and pointing to it with a home directory and the shell (can be skipped)

sudo useradd -d /home/ftp -s /bin/bash  uftp

 

4. Create a user password (skip)

sudo passwd uftp

 

5. ftp an owner and group of folders are changed UFTP (skip)

sudo chown uftp:uftp /home/ftp

 

6. New File vsftpd.user_allowlist and add user name

south you /etc/vsftpd.user_allowlist

 

7. Open the file vsftpd.conf

south you /etc/vsftpd.conf

Uncomment

# write_enable=YES
修改为
write_enable=YES

Add to

userlist_file=/etc/vsftpd.user_allowlist
userlist_enable=YES
userlist_deny=NO

Save and exit

 

8. Restart the vsftpd service

sudo /etc/init.d/vsftpd restart

 

Ftp connection

windows download WinSCP to connect

 

Command line ftp landing

 

1. Open cmd console

2. Enter

ftp ip (ip address address our ftp service host)

 

Enter the user name and password to log in

 

 

 

Common Commands

ls to view all files in the current directory 

lcd browsing the local current directory 

pwd browse a remote ftp service user's current directory 

put upload commands such as: 

$ put test.txt 

GET   download commands such as: 

$ GET test.txt 

quit logout

Guess you like

Origin www.cnblogs.com/suphowe/p/12071550.html