Professional Windows Server 1002003 Security A Technical Reference [Electronic resources]

Roberta Bragg

نسخه متنی -صفحه : 415/ 383
نمايش فراداده

tftp

Stands for trivial file-transfer protocol, which copies files between the client and a host running the TFTP service.

Syntax

tftp [-i] hostname [get | put] source [destination]

Options

-i

Switches to binary (octet) mode for bytewise transfers of binary files. (Otherwise, the default ASCII mode is used.)

hostname

Indicates the destination host running the TFTP service.

get | put

Downloads or uploads the file as specified.

source

Specifies the local file you want to transfer. If you use a hyphen, the destination file is printed out on STDOUT (when getting) or is read from STDIN when putting).

destination

Renames the file after transferring it (destination is optional).

Examples

Transfer the file

C:\pub\smiley.gif from the local machine to the remote Unix host called

BONGO :

tftp -i bongo put C:\pub\smiley.gif
Transfer successful: 386 bytes in 1 second, 386 bytes/s.

Notes

TFTP doesn't support user authentication, so the user transferring the file must be logged on and must have permission to write to the remote directory. TFTP also uses UDP to transfer files and is therefore not guaranteed as reliable. Use FTP instead for a more reliable method that supports basic authentication.

See Also

ftp