Log into the Linux server by using SSH / Shell.
Once you have logged in you will need to edit the “ftp_psa” file, which is located at “/etc/xinetd.d/ftp_psa.
To do this you will need to type the following;
“vi /etc/xinetd.d/ftp_psa
Now that the file is open, you will need to change disable the FTP server by editing the line that disables or enables the FTP server.
Change disable = no to disable = yes
Be sure to save the file and then close it.
Now you have to restart the service that runs the FTP server, which would be the Xinetd service. T do this type the following command;
service xinetd restart.
The server will restart and the ftp server will now be disabled.