Install VSFTPD, stands for Very Secure File Transfer Protocol Daemon on Ubuntu 16.04.3 LTS

In Ubuntu, the FileZilla server is not available. The VSFTPD is used instead of FileZilla Server.

To install this,
sudo apt-get install vsftpd

Edit /etc/vsftpd.conf file:
sudo nano /etc/vsftpd.conf 

1.Disable anonymous user login.
anonymous_enable=NO

2.Uncomment these two lines.
ascii_upload_enable=YES
ascii_download_enable=YES

3.Uncomment and enter your Welcome message - Not necessary, It's optional.
ftpd_banner=Welcome to OSTechNix FTP service.

4.Add this line the end.
use_localtime=YES

5.Save and close the file. Restart vsftpd service to take effect the changes.
sudo systemctl restart vsftpd
or
sudo service vsftpd restart

6.Check if vsftpd service is running or not:
sudo systemctl status vsftpd

You will see like this
 vsftpd.service - vsftpd FTP server
   Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2017-10-30 15:10:15 CST; 19s ago
  Process: 36480 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
 Main PID: 36485 (vsftpd)
    Tasks: 1
   Memory: 404.0K
      CPU: 2ms
   CGroup: /system.slice/vsftpd.service
           └─36485 /usr/sbin/vsftpd /etc/vsftpd.conf

Add an user for FTP

7.adduser username

The output is like that
Adding user `gunay' ...
Adding new group `gunay' (1001) ...
Adding new user `gunay' (1001) with group `gunay' ...
Creating home directory `/home/gunay' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for gunay
Enter the new value, or press ENTER for the default
        Full Name []: gunay
        Room Number []:
        Work Phone []:
        Home Phone []:
        Other []:
Is the information correct? [Y/n] y

Access FTP Server

8.sudo telnet localhost 21

8.1 if you get an error like "-bash: telnet: command not found"
You should install telnet
apt-get install telnet

8.2 After installed telnet, try again the command sudo telenet localhost 21
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 Welcome to Ubuntu FTP service.

To exit , just type quit



Bu blogdaki popüler yayınlar

About Android padding, margin, width, height, wrap_content, match_parent, R Class

@SerializedName and @Expose annotations