Telnet allows users to log in to another machine to perform file operations. File Transfer Protocol (FTP) allows file transfer from one machine to another. In this example, we will demonstrate how to use telnet to log in to a Unix machine and create a folder. With the folder created, FTP is used for transferring a file to that folder.
We will create a state machine to use telnet and ftp for transferring files using the following steps: