In this topic we take a look at connecting to devices remotely, particularly using Telnet or SSH (Secure Shell). This lesson includes two videos and a hands-on cyber lab to practice connecting to a remote server using SSH in the Linux command line.
Immersive Lab: Using SSH
In this lab, we will familiarise you with the basic Secure Shell (SSH) commands, a service commonly used for a secure remote connection between two systems.
This lab can be challenging. If you need support, take a look a the #pre-course-help channel in Slack. We’ve provided some guidance below. Before you start, make sure you thoroughly read the ‘info’ and ‘network’ tabs in the lab itself before trying the tasks.
Q1: You’re currently logged in to the root machine as the user ‘linux’. You need to use SSH to remotely connect to the server as the user ‘alice’. The info tab will help you do this.
Q2. If you have completed Q1, you will have uncovered the answer to Q2.
Q3. Use the ls and pwd commands to get information for Q3 whilst logged in to the server machine as the ‘alice’ user. You’ll need to use the ‘exit’ command to log out of that session and return to your session as ‘linux’ on the root machine where you started. Once you’ve logged out, it’s time to copy the SSH_Key file from the server, back to the root machine. The syntax to copy the file can be found in the info tab. The pwd command will help you identify the file paths you need to input.
Q4. The information needed to complete this question can be found in the info tab. You’re going to log into the server as the user ‘bob’. Instead of inputting a password, you’ll be using the SSH Key you copied from the server in Q3.