To start or stop the FTP server (vsftpd) on a FreeBSD or OpenBSD system, you can use the following steps:
Connect to the system using SSH. You will need to use a tool such as ssh
or putty
to connect to the system using the appropriate credentials.
Once you are logged in, use the sudo
command to gain root privileges. You will need to enter the password for the root
user or provide your own user's password if you have been granted sudo
privileges.
To start the FTP server, enter the following command:
sudo service vsftpd start
sudo service vsftpd stop
Alternatively, you can use the /etc/rc.d/vsftpd
script to start or stop the FTP server. For example, to start the FTP server, you can use the following command:
sudo /etc/rc.d/vsftpd start
To stop the FTP server, you can use the following command:
sudo /etc/rc.d/vsftpd stop
It's important to note that the FTP server will not start automatically after a system reboot, so you will need to start it manually using one of the above methods if you want to use FTP on your system.