Use scp to Secure Copy a file

Linux and MAC terminal windows allow you to remotely secure (encrypted) copy a file to or from your local computer to another workstation without having to first open a connection. The command to do this from a Linux workstation is the scp command. The operation is called a secure copy.

Windows Users: follow Install Putty and PSCP

MAC and Linux Users

  1. Navigate to your local practice workspace.
    /users/deppeler
    cd programs/practice
  2. Run this scp command to copy from CS files to your local computer:
    scp YOURLOGINHERE@best-linux.cs.wisc.edu:/p/course/cs400-deppeler/public/html-s/code/Hello.java ~/users/deppeler/cs400/programs/practice
  3. You should now see the Hello.java file in your practice directory.

If you are on a CS Linux workstation terminal

To copy the above Hello.java to your current working directory.

cp /p/course/cs400-deppeler/public/students/Hello.java .

Secure Copy from your computer to your CS account

Steps

  1. Open a terminal on local computer.
  2. Navigate to the directory on your computer with your program files.
    cd /users/deppeler/eclipse-workspace/p1/
  3. Secure Copy the files from current (local) directory to remote (cs account).
    scp *.java *.class deppeler@best-linux.cs.wisc.edu:/u/d/e/deppeler/private/cs400/programs/p1/

Reminders for the above example: