Linux Upskill Challenge – Part 01

Ethernet Management – SSH

Time to complete: ~1.5-2 hours

Welcome back! In this installment of the Linux Upskill Challenge we’ll be completing a few tasks:

  • Configuring VirtualBox to allow traffic from our VM to our local network.
  • Patching the system.
  • Install SSH and test access.
  • Configure SSH for remote access in a more secure way.
  • Review some basic commands that let us gain insight into our system.

VirtualBox Ethernet Settings

VirtualBox by default put our vm onto a segregated network that it created specifically for this vm. While our vm can access the Internet through this connection we cannot speak to it from any devices on our local network. The goal here is to access our Ubuntu box via SSH (secure shell protocol) from another machine, and for that we need network accessibility. While my vm can hit network objects on my local LAN I cannot see my vm from my local LAN. To make the change in VirtualBox do the following:

From the VirtualBox main screen highlight your Ubuntu vm and click “Settings”, then click the “Network” tab up top.
Change the “Attached to:” dropdown from “NAT” to “Bridged Adapter”.
Verify that the “Name” dropdown lists the connection your host machine is using to connect to your network. I am on a laptop, so I am using my laptop’s WiFi connection. If you are on a desktop select your Ethernet port.

Now that we have that out of the way done start up your vm and log in. Let’s check the IP address, shall we? Run this command:

ip address show

You should get the following output:

Your vm IP address will follow “inet” Note that 127.0.0.1 is the TCP/IP loopback address.

Verify that the IP of your vm is part of your local subnet and if so we are clear to move on.