Transferring files with File Transfer Protocol

 

You can send and receive files with File Transfer Protocol (FTP). Follow these steps to transfer files with i5/OS® FTP:

  1. Collect the following information:

  2. At the command line, type FTP and press Enter.

  3. At the prompt, enter the TCP/IP name or IP address of the remote computer system and press Enter. You can use either the name or the IP address, such as:

    remote.systemname.com
    or
    110.25.9.13

  4. Enter the Coded Character Set Identifier (CCSID). Use the default (*DFT) value unless you know that you need a specific CCSID.

  5. If you want to use a secure connection to protect passwords and data, specify a port value of *SECURE.

  6. Press Enter to initiate the connection. The FTP client displays messages that indicate a successful connection with the remote system.

    If you specify a port of *SECURE and the FTP server does not support implicit TLS or SSL on the specified port, or the TLS or SSL negotiation fails for any reason, the connection is closed.

  7. To change the file transfer type...

    1. To switch to EBCDIC, enter EBCDIC and press Enter before you transfer the file.

    2. To switch to BINARY, enter BINARY and press Enter before you transfer the file.

    3. To switch back to the default type, ASCII, enter ASCII and press Enter before you transfer the file.

  8. Now you are ready to transfer files:

    1. Enter CD and the name of the directory. Press Enter.
    2. Do one of the following steps:

      • To transfer a file from the server system to the client system, enter GET followed by the name of the file:
        GET myfile.txt

      • To send a file that is on the client system to the server system, enter PUT followed by the name of the file:
        PUT myfile.txt

  9. Enter the FTP subcommand QUIT to end the FTP client session and return to the command line.

 

Parent topic:

Using the File Transfer Protocol client on the System i platform

Related concepts
Data transfer methods

Related reference
Scenario: Transferring a file from a remote host Starting and stopping a client session