Introduction: File Transfer Protocol (FTP) is a standard network protocol used for transferring files from one host to another over…