8. Exit the vim editor, saving your changes. Restart the FTP service using this
command: sudo service vsftpd restart
9. To test your FTP server using the local machine, enter ftp 127.0.0.1. Then
enter your username and password for your Ubuntu Server account. Next enter the
dir command to see a list of directories and files. You should see the mydir
11. Go to another computer on your local network or in your virtual network and use the
commands from Step 9 to connect to your FTP server, this time using the IP address
of your server rather than the loopback address. Here are some caveats, potential
problems, and possible solutions to consider for this step:
• Your installation of Ubuntu Server might not allow FTP traffic through its
firewall. You’ll learn about the default Ubuntu Server firewall, iptables, in
Chapter 10. For now, let’s enable the simpler firewall, ufw (Uncomplicated
Firewall), and open the required FTP ports. Enter these commands:
sudo ufw status