# Transferring data from MGHPCC to Unity: ## This guide will allow you to transfer data from the MGHPCC to Unity via Globus. ### Step 1: Log in to Globus * Visit this site: https://app.globus.org/file-manager * Use your UMass credentials to log in ### Step 2: Connect to the MGHPCC and Unity * Select the **File Manager** tab from lefthand pane * In the two "Collection" boxes, select the MGHPCC and Unity via their Globus identities * The MGHPCC is ghpcc#ghpcc07 * Unity is Unity * *more technical identifier: acda5457-9c06-4564-8375-260ba428f22a* * If you start typing either in the "Collection" text box, the dropdown will update and allow you to select the appropriate "Collection" (aka cluster) * Provide your login credentials for each cluster * Once you're finished logging in to each connection, the screen should look something like this: ![](https://i.imgur.com/Hq7qSmo.png) ### Step 3: Transfer files * Below, the Connection and Path text boxes, you should see the contents of each directory. * Navigate to the location of the file/directory you'd like to transfer from and to. * Select the file/directory you'd like to transfer * Click on the "Transfer or Sync to..." button. Shown in the middle here: ![](https://i.imgur.com/aItuvSs.png) * Finally, slick the Start button on the side where you're transferring the data from. * Voila! The file/directory will be queued up and transferred shortly! ### Step 4: Confirm that transfer was successful * You'll receive an email once the transfer occurs. * Open the Destination directory and confirm that the file was transferred as expected. ## This guide will allow you to send data from the MGHPCC to the Unity server using `scp` for the purposes of transitioning. #### Notes: * You will need to have set up an acount on the Unity server. * You will need your password for the MGHPCC server (unless you are using private/public keys for logging on to this too). ### Step 1. * Log in to the MGHPCC. * While logged into the MGHPCC, from your home directory, run `ssh-keygen -t rsa` * This will generate a private/public key pair which is unique to each user. * The generator will ask you to save the keys as a specific name, and you have the option to associate a password to the keys (recommended but not required). * Two files will be created: NAME and NAME.pub * NAME.pub is the public key that you will need for Step 2. ### Step 2. * Log in to the Unity cluster portal: https://unity.rc.umass.edu/ * Navigate to "Account Settings" * You will see the SSH keys that are currently linked to your account * Click the "+" button to add the MGHPCC key to your account. * Copy the entire contents of the public key (NAME.pub) from the MGHPCC generated in Step 1 into the prompt. * Click "add key" * Click "Set Login Shell" * This will now link the two servers, allowing them to communicate ![](https://i.imgur.com/DvFZ2Il.png) ### Step 3. * Log into the Unity cluster * Create a file to test the connection between servers (e.g. `touch test.txt`) * Attempt to transfer the file from Unity to the MGHPCC: * `scp test.txt username@ghpcc06.umassrc.org:/home/username/` * You will be prompted for your password to the MGHPCC - enter it here. * If configured properly, this file should transfer immediately to the specficied destination path (in this case `/home/username/`) ### Step 4. * Assuming that Step 3 worked and the file transferred across from Unity to the MGHPCC, you can use this to pull data across: `scp username@ghpcc06.umassrc.org:/where/files/are/you/want/* ./destination/` * Each time you run `scp` in this way, you will be prompted for your password. * **Note** that currently this only works when **logged in and running commands from Unity, not the MGHPCC.**