Main Content

Transfer Data with Standard Utilities

In these examples, suppose you want to transfer the file/home/cloudtmp/emem.matto the folder/shared/persistedon the headnode of your cloud cluster. Instead of providing passwords, you use an SSH key identity file, which is the private key file you download from a cloud center cluster as described inDownload SSH Key Identity File.

This section highlights only a few of the many file transfer utilities that are available.

SFTP

Thesftputility is a command-line interactive interface, similar toftp, that lets you connect to a remote host, navigate its file system, and transfer files. The following example shows how to usesftpat a UNIX command prompt:

cd /home/cloudtmp sftp -i /home/.ssh/your-key.pem \ clouduser@ec2-67-202-5-207.compute-1.amazonaws.com:/shared/persisted sftp> put emem.mat sftp> ls emem.mat sftp> exit

For more information about thesftputility, use the following commands:

sftp -help man sftp

SCP

Thescputility lets you access the remote host, and transfer the file, in a single command. This example shows the UNIX version of the command:

scp -i /home/.ssh/your-key.pem emem.mat \ clouduser@ec2-67-202-5-207.compute-1.amazonaws.com:/shared/persisted

For more information about thescputility, use the following commands:

scp -help man scp

FileZilla

FileZilla is a GUI utility which lets you connect to the cloud cluster head node and transfer files with an easy drag-and-drop technique. This example shows how to transfer the local fileC:\cloudtmp\emem.matto the folder/shared/persistedon your cloud cluster.

  1. FileZilla开始,并设置其本地站点folder you want to transfer your local file from (or to).

  2. To connect FileZilla to your cloud cluster file system, specify the host that is the head node of your cloud cluster. The user name is alwaysclouduser. Use port 22 for SFTP connections.

  3. Do not provide a password, but instead provide your SSH key identity file underEdit>Settings. In the Select pane of the Settings dialog box, choose SFTP. In the Public Key Authentication pane, clickAdd keyfile. Navigate to the key file that you downloaded from the Cloud Center for this cluster. (Note: On Windows, the.pemformat key file you download from Cloud Center is not directly compatible with FileZilla, but when you select that key file, FileZilla can automatically convert the format for you.) When the key file appears in the list, clickOKto dismiss the Settings dialog box.

  4. 使用Filezilla配置正确的键文件时,请单击Quickconnect.

  5. After connecting, set the Remote site path to/shared/persisted.

  6. Now drag the fileemem.matfrom the local column to the remote column. That completes the transfer.

相关话题