Using SCP to Transfer Files Between Systems

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we will connect to a primary development system using SSH, and, once connected, will review the proper syntax for the `scp` command using either `man` or `info`. With the proper syntax in mind, we will use `scp` to copy a file from the primary development server to a new secondary development system. The last step of the lab will be to copy an audit file from the remote development system to a directory on the primary system.

*This course is not approved or sponsored by Red Hat.*

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Connect to the Primary Development System
  • Collect the IP Address, user account, and password for the primary development system.
  • Use this information with the ssh command to connect to the system.
Use man or info to Review the SCP Command Options
  • While connected to the primary development system, confirm the proper command syntax for the scp command using either the man or info commands.
  • The syntax for the commands would be man scp or info scp.
Use SCP to Copy the Local .bashrc to the New Development System
  • With the proper syntax in mind, collect the IP Address, user account and password for the new development system.
  • Using these credentials and the proper command syntax, use scp to copy the .bashrc file to the /home/cloud_user directory on the new development system.
Use SCP to Copy a Remote File to the Local System
  • Download the /home/cloud_user/build/devsys12-account-audit.log file from the NEW development system to the audit directory on the primary development system.

Additional Resources


As a new system administrator working for a software development company, one of your responsibilities is to monitor new system builds and resolve any issues. The build process did not complete successfully on a new development system so one of the senior administrators has asked you to complete the two failed steps.

After some investigation, you have identified the two failed steps. To complete correct the issues, you will need to

  • Connect to the primary development system
  • Copy the local .bashrc file to the cloud_user account on the new system
  • Copy account devsys12-account-audit.log from the build directory on the remote system to the audit directory on the primary system. <br>

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?