sendfile - transfer a file from the HMC to a remote system
Synopsis
Description
Options
Examples
Environment
Bugs
Author
sendfile -f file -h host-name -u user-ID
[--passwd password] -d remote-directory
[-n remote-file-name] [-s] [-k key-file] [--help]
sendfile transfers a file from the Hardware Management Console (HMC) to a remote system using File Transfer Protocol (FTP) or secure FTP (SFTP).
-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.
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 myidTransfer 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 -sGenerate 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
None
None
IBM Austin
| Linux | SENDFILE (1) | "November 2007" |