Each exercise in this roadmap assumes that you have completed all previous exercises in the roadmap. This exercise asks you to perform some file transfers to and from the running Jetstream2 instance that was created in the previous exercises.

Guacamole File Transfers and Drag/Drop Copying

Use the Guacamole web interface to copy a few files to and from the instance:

  • Log on to the instance using Web Shell.
  • In the Web Shell, press Ctrl + Alt + Shift to show the Guacamole menu.
  • Download a file from the instance:
    • In the Guacamole menu, expand the Devices section and browse to /home/exouser/.ssh.
    • Double-click the file authorized_keys, which will copy it to your browser's download directory.
    • On your computer, view the contents of the browser download directory to confirm that the file is there.
  • Upload a file to the instance:
    • Back in the Guacamole menu, browse to the folder /home/exouser/Downloads, then click the Upload Files button.
    • In the file opening dialog that appears, browse to the directory where the authorized_keys file was downloaded and double-click it to start an upload.
    • The transfer is confirmed in a dialog in the lower right of the Web Shell and the file should soon appear in the current folder shown in the Guacamole menu.
  • In the Web Shell, press Ctrl + Alt + Shift to hide the Guacamole menu.
  • Drag/drop a file from your computer to the instance:
    • Open a file explorer on your computer and browse to a directory that contains some small files.
    • Drag one of the files into the Web Shell tab of your browser and release it.
    • The transfer is confirmed in the disalog in the lower right of the Web Shell.
    • In the Web Shell, type the command ls ~ to see that the file was copied to your home directory.
SCP File Copy

Use the scp command to copy files between your computer and the instance:

  • Visit the details page for your instance and take note of its IP address (referred to below as ip_address). Also display the instance passphrase so you can copy/paste it when prompted for authentication.
  • Copy a file from your computer to the instance:
    • Open a shell in your computer and browse to a directory containing some small files.
    • Identify a file in the directory (referred to here as file_name).
    • Issue the command and provide the instance password when prompted:
      scp file_name exouser@ip_address:Downloads
  • Copy a file from the instance to your computer:
    • In a shell in your computer, browse to a directory where you will be able to copy a file.
    • Issue the command and provide the instance password when prompted:
      scp exouser@ip_address:.bashrc .
    • Issue the command ls -a and confirm that the file .bashrc has been copied.
 
©   Cornell University  |  Center for Advanced Computing  |  Copyright Statement  |  Inclusivity Statement