Using HP-UX Internet Services (February 2007)

3 Transferring Files with ftp
With ftp, you can transfer files among HP-UX, UNIX, and non-UNIX network hosts
that support ARPA services. For more information, type man 1 ftp at the HP-UX
prompt.
Using ftp
The following steps describe how to transfer files between the local and remote host
using the ftp program:
1. Issue the following command to establish a connection with the remote host:
ftp remote_host_name
or
ftp remote_IP_address
2. Type your user name when prompted for by the remote host. If you do not have
an account on the remote host, type anonymous or ftp as the user name to get
access to the anonymous ftp directory. Anonymous ftp allows you to access only
the directory that is set up for anonymous ftp.
3. Type your password when prompted for by the remote host. If you are logging
in as an anonymous user, type your user name and local host name as the
password, in the following format:
user_name@local_host_name
If you are using the Secure Internet Services version of ftp you will not be
prompted for a password.
4. Set the transfer type, if necessary. You can use the binary type to transfer all
types of files. To identify the current transfer type, type status at the ftp>
prompt. To set the transfer type to binary, type binary at the ftp> prompt.
5. You can perform directory operations on the remote host, by issuing commands
such as pwd, cd, and ls. For a list of ftp commands, type ? at the ftp> prompt.
For help on a specific command, type ? command at the ftp> prompt.
To perform directory operations and other shell commands on the local host, put
an exclamation point before the command, for example, !ls.
6. At the ftp> prompt, use the following put or get command to transfer files
between the local and remote systems:
ftp> put filename [destination_filename]
ftp> get filename [destination_filename]
Using ftp 19