After you obtain a logon ID and password to a remote File Transfer Protocol (FTP) server, you can start a client session with that FTP server. You can end the client session using the QUIT FTP subcommand.
This topic provides details for using the FTP client on the i5/OS® operating system.
Before starting the FTP client function, have the following information:
The Start TCP/IP File Transfer Protocol (STRTCPFTP remotesystem) command starts a client session on the local system, and then opens a connection to the FTP server on the specified remote system. For example, entering the command FTP myserver.com starts a client session on the local system, and then opens a connection to the FTP server on the remote myserver.com system. You can specify additional parameters, or wait to be prompted for the parameters by typing STRTCPFTP without specifying a remote system.
Start TCP/IP File Transfer (FTP) Type choices, press Enter. Remote system . . . . . . . . . > MYSERVER.COM Coded character set identifier *DFT 1-65533, *DFT Port . . . . . . . . . . . . . . > *SECURE 1-65535, *DFT, *SECURE Secure connection . . . . . . . *DFT *DFT, *NONE, *SSL, *IMPLICIT Data protection . . . . . . . . *DFT *DFT, *CLEAR, *PRIVATE
After you specify a remote system name, you are prompted to specify additional information. The following content summarizes the options available, and additional details that are available in the field help:
Specifies the remote system name to which or from which the files are transferred. The following items are possible values:
Specifies the ASCII coded character set identifier (CCSID) that is used for single-byte character set (SBCS) ASCII file transfers when the FTP TYPE mode is set to ASCII. The possible values are:
Specifies the port number used for connecting to the FTP server. Normally, the common port value of 21 is used to connect to the FTP server. Under some circumstances, the FTP server can be contacted at a port other than port 21. In those situations, the port parameter can be used to specify the server port to connect to. The possible values are:
If 990 is specified, the FTP client will perform the same functions as if *SECURE were specified.
Specifies the type of security mechanism to be used for protecting information transferred on the FTP control connection (which includes the password used to authenticate the session with the FTP server). Transport Layer Security (TLS) and Secure Sockets Layer (SSL) are compatible protocols which use encryption to protect data from being viewed during transmission and verify that data loss or corruption does not occur.
The FTP client subcommand SECOPEN can be used to open a protected FTP connection during an FTP client session.
The possible values are:
Specifies the type of data protection to be used for information transferred on the FTP data connection. This connection is used to transfer file data and directory listings. The FTP protocol does not allow protection of the data connection if the control connection is not protected.
The FTP client subcommand SECData can be used subsequently to change the data protection level. The FTP client uses the FTP server subcommand PROT to request the specified data protection after a secure control connection has been established.
The possible values are:
Specifies the table object that is to be used to map all outgoing data in the FTP client. Outgoing data is mapped from EBCDIC to ASCII. If no table object is specified for TBLFTPOUT, the CCSID parameter is used to determine outgoing mapping. The possible values are:
The name of the outgoing mapping table can be qualified by one of the following library values:
Specifies the table object that is to be used to map all incoming data in the FTP client. Incoming data is mapped from ASCII to EBCDIC. If no table object is specified for TBLFTPIN, the CCSID parameter is used to determine incoming mapping. The following items are possible values:
The name of the incoming mapping table can be qualified by one of the following library values:
Use the QUIT subcommand to stop an FTP session.
The QUIT subcommand closes the connection with the remote host and ends the FTP session on the system. Alternatively, you can press F3 (Exit), and then confirm to end the FTP client session.
Related concepts
Securing FTP clients with Transport Layer Security or Secure Sockets Layer