Copying a file to a remote host
When using TCP/IP to copy files, you can use this procedure to copy a file to a remote host.
- To establish a connection to a remote host, type:
tftp host1
In this example,
host1
is the name of the host to which you wish to connect.The
tftp>
prompt is displayed. - To determine that a connection has been established, type:
status
A message similar to the following is displayed:Connected to host1 Mode: netascii Verbose: off Tracing: off Remxt-interval: 5 seconds, Max-timeout: 25 seconds tftp>
- Enter the put subcommand, the name
of the file to be transferred from the local host, and the path and file name
for the file on the remote host:
put myfile /home/alice/yourfile
The/home/alice
directory on the remote host must have write permission set for others.Themyfile
file, located in the user's current working directory, is transferred tohost1
. The path name must be specified unless a default has been established. Themyfile
file appears on the remote host asyourfile
. - To end the session, type:
quit
or use the Ctrl-D key sequence.