HMC Manual Reference Pages  - SENDFILE (1)

NAME

sendfile - transfer a file from the HMC to a remote system

CONTENTS

Synopsis
Description
Options
Examples
Environment
Bugs
Author

SYNOPSIS

sendfile -f file -h host-name -u user-ID
[--passwd password] -d remote-directory
[-n remote-file-name] [-s] [-k key-file] [--help]

DESCRIPTION

sendfile transfers a file from the Hardware Management Console (HMC) to a remote system using File Transfer Protocol (FTP) or secure FTP (SFTP).

OPTIONS

-f The name of the file to transfer.
-h The host name or IP address of the remote system to which to transfer the file.
-u The user ID to use to log in to the remote system.
--passwd The password to use to log in to the remote system. If this option is omitted, you will be prompted to enter the password.
-d The directory on the remote system to which to transfer the file.
-n The file name to give the file on the remote system. If this option is omitted, the file is given the same name that it has on the HMC.
-s Use secure FTP to transfer the file. SSH will be used to transfer the file, therefore the remote system must have SSH installed and running.
-k The name of the identity key file for public key authentication. This is the key file generated by the ssh-keygen command. If the matching public key file resides on the remote system and the passphrase is empty, you will not be required to enter a password with this command.

This option is only valid when using secure FTP to transfer the file.

--help Display the help text for this command and exit.

EXAMPLES

Transfer a file using normal FTP. The file will be written to /home/myid/myfile on the remote system:

sendfile -f /home/joe/myfile -h myhost@company.com
-d /home/myid -u myid

Transfer a file using secure FTP. The file will be written to /tmp/xfile on the remote system:

sendfile -f /home/joe/myfile -h myhost@company.com -d /tmp
-n xfile -u myid -s

Generate a public key on the HMC then copy to the remote system for sendfile to use public key authentication with SFTP:

ssh-keygen -t rsa -f mykey

scp mykey me@myhost:/home/me/.ssh/authorized_keys2

sendfile -f /home/me/myfile -h myhost@company.com -d /tmp
-s -k mykey

ENVIRONMENT

None

BUGS

None

AUTHOR

IBM Austin


Linux SENDFILE (1) "November 2007"
Generated by manServer 1.07 from sendfile.1 using man macros.