In this lab, you’ll learn to set up, configure, and secure two essential network protocols: SSH (Secure Shell) and FTP (File Transfer Protocol). SSH is widely used for secure remote administration of servers, enabling encrypted connections that protect data during transmission. You’ll explore the configuration and hardening of SSH to prevent unauthorized access, including setting up key-based authentication, restricting login privileges, and enabling multi-factor authentication (MFA) for enhanced security.
The second half of this lab covers FTP, a protocol traditionally used for transferring files between clients and servers. You’ll configure an FTP server, create and manage FTP-specific user accounts, and explore methods for securing FTP access through user restrictions and access controls.
Resources to assist with the lab:
Please reach out to the TAs only after making a genuine effort to resolve the issue independently. While they are available to provide guidance and support, their role is to assist you in developing your understanding rather than providing immediate solutions. You are encouraged to approach challenges proactively, fostering problem-solving skills and critical thinking in the process.
Developing problem-solving skills and critical thinking is fundamental to your education and growth. These skills are emphasized as part of the Aims of a BYU Education, which seek to cultivate individuals of faith, intellect, and character. Problem-solving and critical thinking are essential components of sound reasoning, effective communication, and intellectual depth — qualities that prepare you to succeed in both academic and real-world challenges.
BYU’s focus on lifelong learning and service reminds us that the ability to independently approach, analyze, and resolve complex issues is just as important as mastering technical skills. These capabilities not only build competence but also instill the confidence to contribute meaningfully to the world and continue learning throughout life.
You will be working with:
Since your machines do not currently have internet access, you will need to configure the network as follows:
Lab-3-ssh-ftp Machine:
172.18.<ID>.3/16172.18.0.1172.18.0.1Lab-3-kali Machine:
172.18.<ID>.4/16172.18.0.1172.18.0.1blueteamabc123SSH on the server by installing the openssh-server packagelab-3-kali machine.blueteam account.3.1 minute.10ssh-file.txt from your lab-3-kali machine Documents directory to your server. Place it in /home/blueteam/P4/.Use the file /root/secure for the questions in P5
bob? Enter the line bob-failed:<count> into the file /home/blueteam/P5/P5.txt.redteam? Enter the line redteam-successful:<count> into the file /home/blueteam/P5/P5.txt.bob? Enter the line bob-password:<count> into the file /home/blueteam/P5/P5.txt.readteam used an ssh key? Enter the line redteam-key:<count> into the file /home/blueteam/P5/P5.txt.To complete P6 P1-5 must have a green arrow before starting
vsftpdftp users to their home directoriesTo complete P9 P1-8 must have a green arrow before starting
2222. Make sure it is still also running on port 22.root account login via sshpassword authentication and only allow key authenticationNote: Do not change the passwords of any users.
lab-3-kali machine generate ssh keys for the users ssh1, ssh2, ftpuser, bob and use their key to login to each of their accounts.Using logs (use the logs with postfixes of -date rather than the normal ones) answer the following questions:
redteam account using to access your machine? Enter the line ip:<ip> into the file /home/blueteam/M3/M3.txt.filepath:<filepath> into the file /home/blueteam/M3/M3.txt.To complete M4 P1-P9 and M1-M3 must have a green arrow before starting
The users ssh3 and ssh4 are having issues using their ssh keys. Troubleshoot the problems and allow them to access their accounts again.
/shared-ftpread, write and execute access to /shared-ftp for the owner and group/shared-ftp to ftpuser and set the group to ftp/shared-ftp directory when they log in and do not allow them to exit the directory.ssh3 from accessing the ftp server but still allow ssh access644ftp group and read and write over ftp to the /shared-ftp directory and that users not in the ftp group cannot read or write over ftp to the /shared-ftp directoryTo complete M7 P1-9 and M1-6 must have a green arrow before starting.
ssh3, blueteam and blackteam to ssh into the serverssh4 to ssh into the server but only from 172.18.0.35 failed login attempts for 10 minutes.You don’t need to submit anything for this lab. All of the above criteria will be auto-graded unless stated otherwise. Once you have finished the lab you will have to do a verbal pass off with a TA.
You will be asked two of these questions at random during your verbal pass-off.