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 theman
orinfo
commands. - The syntax for the commands would be
man scp
orinfo scp
.
- While connected to the primary development system, confirm the proper command syntax for the
- 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 theaudit
directory on the primary development system.
- Download the