Exercise: Copy a Tree To Remote Machine (And Adjust Permissions)

In Exercise: Verify, Repeat (and the exercise series that preceded it), you created an entire file hierarchy on the local machine (your work machine), rooted at /tmp/parent.

Continuing from there …

  • Copy that tree to the remote machine, under the name ~/my-parent-copy. Use the scp command to do this.

  • Use one single local ssh command to tune the permissions of the remote tree ~/my-parent-copy (and its contents, recursively) so that others don’t have any permissions to do anything.

    (Hint: you can use the -R option to the chmod command to modify permissions recursively)

cluster_linux Linux cluster_linux_basics Linux Basics cluster_linux_basics_intro Introduction: Concepts and Terminology cluster_linux_ssh SSH: Secure Shell cluster_linux_ssh_exercises Exercises: SSH linux_basics_intro_process Processes, Scheduling, Address Spaces linux_basics_intro_overview Overview linux_basics_intro_process->linux_basics_intro_overview linux_basics_intro_process_tree Process Hierarchy (Parent, Child Process) linux_basics_intro_process_tree->linux_basics_intro_process linux_basics_intro_login Login? What Is That? linux_basics_intro_login->linux_basics_intro_process_tree linux_ssh_scp SSH: Secure Copy (scp) linux_ssh_basics SSH: Basics linux_ssh_scp->linux_ssh_basics linux_ssh_key_pair SSH: Public Key Authentication linux_ssh_key_pair->linux_basics_intro_login linux_ssh_key_pair->linux_ssh_basics linux_ssh_basics->linux_basics_intro_login linux_ssh_exercises_copy_tree Exercise: Copy a Tree To Remote Machine (And Adjust Permissions) linux_ssh_exercises_copy_tree->linux_ssh_scp linux_ssh_exercises_copy_tree->linux_ssh_key_pair linux_ssh_exercises_copy_tree->linux_ssh_basics linux_ssh_exercises_copy_file Exercise: Copy a File To Remote Machine, And Verify linux_ssh_exercises_copy_tree->linux_ssh_exercises_copy_file linux_ssh_exercises_pubkey Exercise: Create SSH Key Pair linux_ssh_exercises_copy_tree->linux_ssh_exercises_pubkey linux_ssh_exercises_copy_file->linux_ssh_scp linux_ssh_exercises_copy_file->linux_ssh_key_pair linux_ssh_exercises_copy_file->linux_ssh_basics linux_ssh_exercises_copy_file->linux_ssh_exercises_pubkey linux_ssh_exercises_pubkey->linux_ssh_key_pair