What is FTP? In which scenarios we use this protocol?

FTP is a “file transfer protocol”. This is used to share the files among the heterogeneous OS environments.

For example,

We can share files from Linux to windows & vice versa. Linux-AiX

 

ftp

 

Setup Assumptions:

In the above diagram, we have 3 systems as shown.

Client machine

Windows – ftp client installed. we can put and get files from both Linux and UNIX machines.

 

Linux Machine

Linux – ftp client & server components installed. For getting and putting the files with other servers. This machine can act as both server and client.

 

Unix Machine

AIX – ftp client & server components installed. For getting and putting the files with other servers. This machine can act as both client and server.

 

Note: When we say ftp clients, it could be

Command mode ftp access over cmd in windows.

Filezilla

Winscp etc

 

Black – Arrow,

Represents the session initiation. We can observe that connection is always initiated from a ftp client machine to ftp server machine.

 

Orange – Arrow,

Represents the data flow mode. Once the connection is established files can be uploaded or downloaded from ftp server machine from clients.

 

Remember:

• Ftp supports only file I/O this means we can transfer the file only.

• Using ftp we cannot transfer the directory.

 

What is the difference between FTP client & FTP Server?

  • Ftp client may be the windows, Linux/ UNIX and a third party software like FIleZilla/ Winscp.
  • FTP server must be a Linux / UNIX machine.
  • Ftp client may connect to the ftp server to download or upload the files.
  • Always the session is initiated by ftp client only.
  • On linux terminal we can find ftp command only if ftp client is installed. This option is not found with only ftp server installed.

 

For more understanding Step by Step installation for FTP server and look around for “ftp” command in that system.

 

Note:

• We can’t connect,

ftp client ftp client,

ftp server ftp server

ftp server ftp client.

 

Topics Summary