Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Code Block
    languagebash
    titleNavigate to the directory that has the file you want to copy.
    cd Downloads
  2. The scp command will have the following parts: scp <filename> <USERNAME>@<Remote_computer_address>:<location_you_want_the_file_copied_to_starting_with_a_/_mark>

    Code Block
    languagebash
    titleuse the scp command to transfer the remote file to to your local computer
    scp README <USERNAME>@ls5.tacc.utexas.edu:<pwd_you_copied_in_the_right_window> . 

    *note the required punctuation:

    1. @ symbol following your username (same as is done in the ssh command)
    2. : following the remote computer address. Missing this mark is the 2nd most common mistake people make
    3. immediately after the : mark. Missing this mark is the most common mistake people make.
    Info
    titleExplaining why this is the only actual required command

    As above, if you know the path to the directory you want to copy your file to, you do not need the Right window with the remote connection. Unfortunately, just as the remote computer doesn't know anything about your local computer, your local computer doesn't know anything about the nice shortcuts that exist on TACC such as the $SCRATCH variable. This means that in order to do this with a single window you would need to know what $SCRATCH is from memory.

    Even assuming you did know the path to the directory you want, it has been extremely rare in my experience that transferring a file to TACC is the last step. Almost always it is actually the first step where once the file is transferred you immediately begin working on it there.

  3. Upon hitting enter you should be prompted for your tacc password, and 1 time code.

  4. Switch back to the other window and use the ls command to see the file.

Alternatives:

  1. Students sometimes ask if you can use scp in the window logged into TACC and transfer a file to their local computer. The answer is yes you can, but it is more complicated. For those wanting to figure this out for themselves, this question has been asked and discussed on stackexchange and should work for you. This is something your instructor has never done personally but is willing to answer questions about, or provide additional resources to help you do this for yourself if you think it important.
  2. For those using putty, I remind you that using the power shell with openSSH installed from windows10 will allow you to use the scp command listed above. For those wanting help using power shell see this tutorial.
  3. Another alternative for putty users is WinSCP. This link will take you to the installation instructions.
    1. Once installed, recommend using the 'commander' interface until you are more familiar with things. 
    2. This separate powerpoint provides some additional information.



While you can return to Genome Variant Analysis Course 2020 Home Page, it is more likely that you want to use the back arrow on your browser to return to the page you were just on.