# Transferring files to and from Palmetto

## Overview

Teaching: 15 min
Exercises: 0 min
Questions
• How can I transfer data between Palmetto and my local machine?

Objectives
• CyberDuck

## CyberDuck

There are many ways to transfer files between your local computer and Palmetto. One piece of software that works for both Mac and Windows machines is called CyberDuck. You can download it here.

After installation, click on “Open Connection”. A new window will pop out:

Let’s configure the connection:

• in the drop-down menu on top, select “SFTP” instead of the default “FTP”;
• in the “Server”, please specify xfer02-ext.clemson.edu;
• make sure that Port is set to 22;

Then, click on “Connect”. If it complains about an “unknown fingerprint”, click “Allow”. Another window will pop out asking you to do two-factor verification:

Type “1” (the number one) or the word “push” if you want to get a DUO push notification. After two-factor verification, a yet another new window will pop up, which will contain the contents of your Palmetto home directory (if this is your first time using Palmetto, it will be empty). You can go to any other folder on Palmetto by changing the path (e.g., /scratch1/username). You can upload files by clicking the “Upload” button, and download files by right-clicking them and selecting “Download”.

## command line (Mac and Linux users)

Another option for advanced Mac and Linux users is to use the scp command from the terminal. Open a new terminal, but don’t connect to Palmetto. The scp command works like this:

scp <path_to_source> username@xfer02-ext.clemson.edu:<path_to_destination>


For example, here is the scp command to copy a file from the current directory on my local machine to my home directory on Palmetto (gyourga is my Palmetto username:

scp myfile.txt gyourga@xfer02-ext.clemson.edu:/home/gyourga/


… and to do the same in reverse, i.e., copy from Palmetto to my local machine:

scp gyourga@xfer02-ext.clemson.edu:/home/gyourga/myfile.txt .


The . represents the working directory on the local machine.

To copy entire folders, include the -r switch:

scp -r myfolder gyourga@xfer02-ext.clemson.edu:/home/gyourga/


### transferring large amounts of data

If you need to transfer several gigabytes of data, and you find CyberDuck too slow, you can use Globus. The interface is not as intuitive, but the file transfer speeds are much higher. The guide to using Globus is on our website.

## Key Points

• Windows and Mac users can use CyberDuck for file transfer