Lab T1.5.4 Remote Network
We will do a Lab working with Remote Networking Tools
You will do this as a group and as an individual.
Lab - 1.2.4 Copying Files between Systems - Click here.
We will doing this on my big Screen.
You will work with a partner.
Start your Cyber Range:
Start only your Ubuntu machines.
PX_lastname_rsyncP6.png
- Screen shot of:
• Both student 1 and 2 need to complete this portion.
• Move to your Ubuntu machine
sudo nano /etc/ssh/sshd_config
PX_lastname_rsyncP8.png
- Screen shot of:
Student 1:
• Create a directory to that can be
transferred between machines.
mkdir rsync_backup
• Navigate into the directory and create
100 empty files to serve as practice
files to backup.
cd rsync_backup
touch test{1..100}.txt
ls to view the files created.
PX_lastname_rsyncP9.png
- Screen shot of:
Return to the previous directory with cd ..
• Backup or transfer the files using rsync to your partner’s machine.
• rsync –a /home/ubuntu/rsync_backup ubuntu@<Partner_IP<:/home/ubuntu/backup
PX_lastname_rsyncP11.png
- Screen shot of:
Student 2:
• Use ls to view the files and you should see a directory called backup
now.
• Change directories into the backup folder and view the files
cd backup/
ls
PX_lastname_rsyncP12.png
- Screen shot of:
Student 2:
• Return to the home directory with cd
• Create a new file to send via SCP
touch test_scp.txt
nano test_scp.txt
PX_lastname_rsyncP13.png
- Screen shot of:
Transfer the file using SCP by listing the file and the destination
host: directory location
scp test_scp.txt ubuntu@<Partner_IP>:/home/ubuntu/
PX_lastname_rsyncP14.png
- Screen shot of:
Student 1:
• Make sure you are in the home
directory and list the files
cd
ls
• You should see the scp test file,
which you can view
cat test_scp.txt
PX_lastname_rsyncP15.png
- Screen shot of:
Student 1:
• Netcat requires one machine to be a listener and one sender, which can only be setup one at a time.
• Use the following to setup Student 1 machine to listen:
nc –l –p 6666 –q 1 <test_nc.txt< /dev/null
PX_lastname_rsyncP17.png
- Screen shot of:
• Student 1:
• List the files and view the nc file that was sent.
ls
cat test_nc.txt
Be sure to drop off your 9 files
into google classroom.
PX_lastname_rsyncP6.png
PX_lastname_rsyncP8.png
PX_lastname_rsyncP9.png
PX_lastname_rsyncP11.png
PX_lastname_rsyncP12.png
PX_lastname_rsyncP13.png
PX_lastname_rsyncP14.png
PX_lastname_rsyncP15.png
PX_lastname_rsyncP17.png