<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Asif Shaik on Medium]]></title>
        <description><![CDATA[Stories by Asif Shaik on Medium]]></description>
        <link>https://medium.com/@muhdasifss7706?source=rss-733eb1740c45------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ql-cgrrw95SQfrbA4gMOHQ@2x.jpeg</url>
            <title>Stories by Asif Shaik on Medium</title>
            <link>https://medium.com/@muhdasifss7706?source=rss-733eb1740c45------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:11:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muhdasifss7706/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ubuntu Server 101 #2 SSH File Transfers]]></title>
            <link>https://medium.com/@muhdasifss7706/ubuntu-server-101-2-ssh-file-transfers-8ef6ad816be8?source=rss-733eb1740c45------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ef6ad816be8</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Asif Shaik]]></dc:creator>
            <pubDate>Fri, 26 Dec 2025 17:34:11 GMT</pubDate>
            <atom:updated>2025-12-26T17:34:11.432Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KSc6avvibI1Q4qk4DoJaKg.png" /></figure><p>Many people believe that SSH is only used to make connections to remote servers, but that can’t be further than the truth.</p><p>The fact that SSH acts as a <strong>secure transport layer</strong> allows it to securely perform other functions such as copying/downloading files and forwarding network traffic between servers.</p><p>In this article, we’ll explore two built-in tools for transferring files:</p><ol><li><strong>Secure Copy Protocol (SCP) </strong>— Fast and simple file copying</li><li><strong>Secure File Transfer Protocol (SFTP) </strong>— Interactive file-transfer shell</li></ol><p>Both these features use the same secure channel as the SSH connection, so all data remains encrypted.</p><h3>Secure Copy Protocol (SCP)</h3><p>Secure Copy Protocol (SCP) is convenient when you need to quickly copy files between your local machine and remote server with a single line. The downside of this speed is that you need to know the exact directory of the file beforehand.</p><p>There are two commands you can use in SCP:</p><ol><li>Sending a file to remote server<br>scp filename.txt username@hostvm_ip:/home/username<br><strong>/home/username<em> </em></strong>defines the directory to which we want to send the file, which is our main user’s home directory.</li><li>Download a file from remote server<br>scp username@hostvm_ip:/home/username/server_file.txt .<br><strong>/home/username/server_file.txt</strong> defines the file you want to copy and the directory its located in. The . at the end of the command specifies that the file is to be downloaded to the current directory.</li></ol><h4>SCP Hands-on</h4><p>Let’s try some hands-on exercises to reinforce what we’ve learned so far. Create a text file on your host machine called host_file.txt and another one on your remote server called server_file.txt . In both files, add some sentences to help yourself distinguish between the two.</p><p>You must be wondering, how do I create a text file from a CLI terminal for my server? Well, we will cover text editors later on this series, but for now you can use this command: nano server_file.txt</p><p>You will see an interactive text editor like this pop up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IoEqunTgp67LC-nvaS_BlQ.png" /></figure><p>This is the nano editor, which we can use to create and edit files of various formats (.txt/.py/.sh/.yaml etc.). After adding your text, just press Ctrl+O to write the changes to the file, and Ctrl+X to exit the editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fsyF_Us3lHszafqQqWDZ7Q.png" /></figure><p>Try using the commands I shared with you, and see if you can get the same output as me. I used SCP to transfer the host_file.txt to the server, and download the server_file.txt to my host machine. I then used cat to view the contents of the file to make sure it wasn’t corrupted.</p><h3>Secure File Transfer Protocol (SFTP) Shell</h3><p>SFTP is useful when you’re going to be transferring multiple files, or even directories over a longer period. At that point, running long commands multiple times can be pretty exhaustive.</p><p>Worry not, as SFTP, unlike SCP is an interactive shell, where you can browse directories (both on your remote server and host machine), upload and download files, or even directories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRKOpRon6ueDYUfHDfYoXw.png" /></figure><p>You can begin an SFTP session to your remote server using the command: <br>sftp username@hostvm_ip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PHsi-_pe9X9lB8xCf-sK5g.png" /></figure><p>Here’s some useful commands to traverse/list directories:<br>ls list files on the remote server<br>cd &lt;path&gt; change directory on the remote server<br>lcd &lt;path&gt; change directory on host machine<br>pwd print current directory on remote server<br>lpwd print current directory on host machine</p><p>You can download/upload files/directories using the following commands:<br>put filename.txt upload a single file<br>put -r foldername upload a directory</p><p>get filename.txt download a single file<br>get -r foldername download a directory</p><p>To exit the interactive shell, simply enter the command bye</p><h4>SFTP Hands-on</h4><p>Let’s try using SFTP through this simple exercise, but this time rather than transferring a file, lets transfer a folder from our our host machine to the remote server, hostvm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y4fYEgss2tJVP9ED8GTrCg.png" /></figure><p>Run this command in your PowerShell to create a test folder and add a text file within it called test.txt :<br>mkdir ubuntu101_test<br>touch ~/ubuntu101_test/test.txt</p><p>Don’t worry too much about the commands, we’ll cover them in the file management part of the series.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NUcewYgrs6qiS5_mNAr7gw.png" /></figure><p>Now that we’ve created the folder and text file within it, lets try copying the entire directory via SFTP.</p><p>Use the command sftp username@hostvm_ip to begin the SFTP session.</p><p>Copy the folder we created earlier using the command:<br>put -r ubuntu101_test</p><p>If you want to change where the folder is copied to, change the remote working directory using cd &lt;path&gt; before running the put command.</p><p>To verify, you can use the ls command to check the current folders and files available in the home directory. You should see the ubuntu101_test folder we created in the host machine and copied over.</p><p>In this article, we explored two different methods of file transfer over SSH. While both tools achieve the same outcome (transferring files), each serves a different purpose.</p><ul><li>SCP is quick and efficient, allowing one-off transfers or automation</li><li>SFTP shines when you’re unfamiliar with your server filesystem thus requiring the need to browse directories, or if you’re just working with file transfers over a longer period of time.</li></ul><p>However, both rely on SSH as the core transport mechanism, allowing you to use them without no extra configurations alongside the benefit of fully encrypted transfers.</p><p>That’s all for now, <strong>Stay tuned, and Ciao!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ef6ad816be8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ubuntu Server 101 #3 SSH Port Forwarding]]></title>
            <link>https://medium.com/@muhdasifss7706/ubuntu-server-101-3-ssh-port-forwarding-5695d539a66b?source=rss-733eb1740c45------2</link>
            <guid isPermaLink="false">https://medium.com/p/5695d539a66b</guid>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[homelab]]></category>
            <dc:creator><![CDATA[Asif Shaik]]></dc:creator>
            <pubDate>Thu, 25 Dec 2025 17:08:13 GMT</pubDate>
            <atom:updated>2025-12-25T17:08:13.772Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KSc6avvibI1Q4qk4DoJaKg.png" /></figure><p>One of the most powerful features of SSH is the ability to <strong>forward traffic from a port on your remote server</strong> to your host machine and vice versa.</p><p>Why is this feature important?</p><p>Say you’re developing an application running on your remote server, and you want to test it from your host machine. Rather than expose the traffic publicly through the internet, you can use Port Forwarding to tunnel traffic securely through your SSH connection.</p><h3>Setup a Simple HTTP Web Server on Host and Server</h3><p><strong>(Skip if you’re not following along the labs)</strong></p><p>The following instructions are to help you set up HTTP Web Servers on your host machine and remote servers for the later hands-on activities. We’ll use Python’s built-in HTTP server because it works on both Windows and Linux machines.</p><p>On your remote server, <em>hostvm</em> run python3 -m http.server 8080 .</p><p>On your host machine, run either:<br>python -m http.server 7000 (Windows Powershell)<br>python3 -m http.server 7000 (Linux/Mac OS)</p><p>At this point, you have lightweight HTTP web servers that serve your directory in the specified ports, running on both your server and host machine.</p><p><strong>Leave the two terminals running the web servers running; use another terminal for the later exercises.</strong></p><p>In the following sections, we’ll be using the curl http://localhost:port command which is used to send a HTTP request from the terminal and display the response.</p><h3>Local Port Forwarding</h3><p>Local Port Forwarding allows your host machine to access services running on your remote server. Essentially we’re telling our host machine:</p><blockquote><strong>Open a port on my machine and forward all traffic to the remote server through SSH</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WBAdxcB1bNQ_g-N_w4x07Q.png" /></figure><p>The diagram above visualizes a Local Port Tunnel created using the command:</p><p>ssh -L localaddr:localport:remoteaddr:remoteport user@server_ip</p><p>In this scenario, a HTTP or web service is running on the remote server, exposed via an arbitrary port called remoteport. By curling remoteaddr:remoteport, we are served with the HTTP response.</p><p>By using the SSH tunnel, we can get the exact same output on our host machine, but this time by curling localaddr:localport. See how we can now access the remote service locally now?</p><p><strong>Here’s some key takeaways from this part:</strong></p><ul><li>The listening port is opened on your host machine</li><li>The service exists on the remote server, and is exposed via its own port (remote port)</li><li>SSH is used to securely bridge both of these ports</li></ul><h4>Local Port Forwarding Hands-On</h4><p>Try curling Port 8080 and Port 9000 on your host machine before using the SSH Port Forward command. Notice that you get a “failed to connect error”. Think about why this happens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*oltUB0bWzBDR2O0-6BGpOg.png" /></figure><p>Run the command:<br> ssh -L localhost:9000:localhost:8080 username@hostvm_ip.</p><p>This command:</p><ul><li>Opens a new port, Port 9000 on your host machine</li><li>Forwards traffic through SSH</li><li>Delivers traffic sent into Port 9000 (Local) to Port 8080 (Remote)</li></ul><p>In your host machine’s browser, enter this in the search bar:<br>http://localhost:9000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*avacghskUzxDAzsXSH8Fuw.png" /></figure><p>You should see something like this pop up. This is your remote server’s directory being served by the HTTP web server via Port 8080. Even though the service runs remotely, it is now reachable <strong>locally</strong> via port 9000.</p><p>If you’re ready to move on the next part, close the terminal running the Local Port Forwarding tunnel.</p><h3>Remote Port Forwarding</h3><p>Remote Port Forwarding allows a remote server to access a service running on your host machine through an encrypted SSH tunnel.</p><p>Conceptually, this is the inverse of Local Port Forwarding. Instead of pulling a remote service down to your local machine, we are <strong>pushing a local service up to the remote server</strong>.</p><p>We’re telling the remote server:</p><blockquote><strong>Open a port on your machine and forward any traffic sent to it back to a service running on my host machine through SSH.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w8LpR-SPUuEFDc5kOXAOVg.png" /></figure><p>The diagram visualizes a Remote Port Tunnel created using the command:<br>ssh -R remoteaddr:remoteport:localaddr:localport user@server_ip</p><p>In this scenario, an HTTP web service is running on the <strong>host machine</strong>, exposed locally via localaddr:localport. By curling localaddr:localport on the host machine, we receive an HTTP response directly from the service.</p><p>By launching a Remote Tunnel, <strong>the remote server</strong> opens a listening port, remoteaddr:remoteport. Any traffic sent to this port is securely forwarded back through the SSH tunnel to the service running on the host machine.</p><p>This means that by curling remoteaddr:remoteport on the remote server, we get the <strong>exact same output</strong> as if we were accessing the service locally on the host machine.</p><p><strong>Here’s some key takeaways from this part:</strong></p><ul><li>The listening port is opened on the remote server</li><li>The service (eg. HTTP Server) runs on the host machine</li><li>SSH securely forwards traffic from remote server back to host’s service port</li></ul><h4>Remote Port Forwarding Hands-On</h4><p>Let’s start by curling Port 8000 on your remote server, which will be used to receive forwarded traffic from the host machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*DHMohLJeAPANOOW4zqI3ww.png" /></figure><p>This returns an error, as expected, since there is no forwarding set up yet.</p><p>On the host machine, run the following command:<br>ssh -R localhost:8000:localhost:7000 username@hostvm_ip</p><p>This command:</p><ul><li>Opens a new port, Port 8000 (remoteport) on the remote server</li><li>Forwards traffic securely through SSH</li><li>Delivers traffic sent into Port 8000 (remote) back to Port 7000 (local) on your host machine</li></ul><p>Now, on the remote server, try curling Port 8000 again. You should now see a HTML output of your host machine’s directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*6hrrD-CFy-uNoSXb_X-eIA.png" /></figure><p>At this point, your remote server can securely access a service running locally on your laptop without exposing any ports to the wider network.</p><h3><strong>Quick Recap of What You’ve Learned So Far</strong></h3><p>Here’s a quick recap of what we’ve covered:</p><ul><li><strong>Local Port Forwarding: </strong>SSH opens a local port on your host and securely forwards traffic to the remote service.</li><li><strong>Remote Port Forwarding:</strong> SSH opens a port on the remote server and tunnels traffic back to your local service.</li><li><strong>TRAFFIC DIRECTION MATTERS<br></strong>The key difference between Local and Remote Port Forwarding is <strong>where the listening port is opened</strong>, not where the service runs.</li></ul><p><strong>Here’s a tip: </strong>If you’re using both localhost on your host machine and remote server, you can collapse the SSH Port Forward commands to:</p><p><strong>Local Port Forward:</strong> ssh -L 9000:8080 user@server_ip <br><strong>Remote Port Forward: </strong>ssh -R 8000:7000 user@server_ip</p><p>This is because when an address isn’t specified, SSH defaults to localhost.</p><p>I hope you’ve managed to understand the basics of one of the most important tools in SSH. There are more advanced features, and some tricks to Port Forwarding that I’ll hopefully cover in another article.</p><p>That’s all for now, <strong>Stay tuned, and Ciao!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5695d539a66b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ubuntu Server 101 #1 OpenSSH]]></title>
            <link>https://medium.com/@muhdasifss7706/ubuntu-server-101-1-openssh-0f4ddeca6983?source=rss-733eb1740c45------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f4ddeca6983</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <dc:creator><![CDATA[Asif Shaik]]></dc:creator>
            <pubDate>Thu, 25 Dec 2025 17:06:43 GMT</pubDate>
            <atom:updated>2025-12-25T17:06:43.813Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KSc6avvibI1Q4qk4DoJaKg.png" /></figure><p>If this isn’t your first rodeo, you would know that most tutorials would probably get you started with file management.</p><p><strong>Well, this isn’t most tutorials.</strong></p><p>Whether you’re checking logs, installing software, managing services, or troubleshooting issues, almost everything you do as an administrator starts with an SSH connection.</p><h3>What is OpenSSH (Open Secure Shell)</h3><p>OpenSSH is simply a set of tools built upon the SSH network protocol that allows you to:</p><ul><li>Connect securely to remote machines</li><li>Run commands remotely</li><li>Transfer files (using SCP/SFTP)</li><li>Perform Port Tunneling</li></ul><p>The core feature of SSH that makes it popular among administrators is its security. Unlike Telnet, which was used decades ago, SSH encrypts data and has key-pair authentication.</p><p>In order to SSH into a machine, we use the following command in our host machine: ssh username@ipaddress</p><h3>SSH Client vs SSH Server</h3><p>When you run ssh hostvm@hostvm_ip you begin using the SSH Client which sends a request to your host VM which runs the SSH Server which appears as process called sshd.</p><p>This applies both ways, meaning if your laptop has OpenSSH configured, it can also act as a server, and we can SSH into it from the hostvm.</p><p>Now, the sshd service runs as a daemon in your VM listening on Port 22. You can think of daemons as programs that run in the background and require no human interaction, and ports as dedicated channels for data to flow through.</p><p>You will soon see that most core services have dedicated ports; this is to prevent conflicts with other applications.</p><h3>OpenSSH Components</h3><p>OpenSSH is not a single binary or file but rather, a collection of components spread across the filesystem, each with a specific role.</p><ul><li><strong>SSH Daemon</strong> /usr/sbin/sshd <br>Program that listens for incoming SSH connections</li><li><strong>Server Configuration File</strong> /etc/ssh/sshd_config<br>Controls the SSH Server behaviour, i.e authentication methods, ports, permissions etc.</li><li><strong>Client Configuration File (System Wide) </strong>/etc/ssh/ssh_config <br>Defines default SSH client behavior for all users on the system.</li><li><strong>Client Configuration File (Per-User) </strong>~/.ssh/config <br>Allows users to define shortcuts,identities and connection options.</li><li><strong>User SSH Directory </strong>~/.ssh/ <br>Location to store private/public keys and trusted server fingerprints.</li></ul><p>We won’t explore ALL these files, but you can always use cat &lt;directory&gt; to view their contents and try to understand them.</p><h3>OpenSSH Authentication</h3><p>When you SSH into a remote machine, there’s two ways to prove your identity:</p><ol><li><strong>Password Authentication</strong><br>You type a password, the server verifies it and grants access if correct. This method is simple but less secure, especially if the password is easy to guess.</li><li><strong>Key-Based Authentication<br></strong>Instead of a password, you use a cryptographic key pair:<br>a. <strong>Private Key </strong>— Stored on your local machine<br>b. <strong>Public Key</strong> — Stored on the remote server</li></ol><p>Key-pairs are safer than passwords because they’re not something you “come up with” but rather generated using cryptographic algorithms like ED25519 (used in OpenSSH by default).</p><p><strong>So how does key-based authentication work?</strong></p><ol><li>Generate a key-pair on your host machine (i.e your laptop)</li><li>Copy your public key to the server (requires password login to server)</li><li>Connect to the server via SSH command</li><li>The server checks if your public key exists in the authorized lists</li><li>If yes, the server sends a cryptographic challenge only your private key can solve</li><li>If the answer is valid, the host machine is validated and the SSH session begins.</li></ol><p>Did you notice? The server NEVER examines your private key, it simply uses a challenge whose answer is unique to your private key to verify your identity. This is one of the best things about key-pair authentication; your private key is never exposed!</p><h3>OpenSSH Hands-On</h3><p>At this point, you have already SSH-ed into your hostvm and logged in using a password. However, for this next step, let’s use the Virtual Box console to really simulate real-life SSH troubleshooting.</p><h3>Exploring SSH Components</h3><h4>SSH Daemon</h4><p>Let’s start by checking to see if the SSH daemon is running. Run the following command in your VB console: systemctl status ssh</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*P6oM8oNkkO2BT1Jq9pt4SA.png" /></figure><p>You should see <strong>active(running) </strong>highlighted in green; this means that the process is running. Just for context, systemctl is a service manager used by Ubuntu to control (check/restart/stop) background services.</p><h4>SSH Server Configuration (sshd_config)</h4><p>Let’s take a look at the SSH server’s main configuration file. On your hostvm, run this command: sudo nano /etc/ssh/sshd_config</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PuQ8boS2eTesgAveQHuv1w.png" /></figure><p>You’ll notice that almost all the lines begin with “#” which just means they’re commented out; i.e not active. However, even when commented out, OpenSSH still applies its built-in default values. To change these values, simply delete the “#”.</p><p>Here’s some core settings you should understand:</p><ol><li>Port 22 <br>SSH listens on Port 22 by default, changing this can alter the port the SSH server uses to listen on. This can be done as a way to avoid malicious scans targeting Port 22.</li><li>#AddressFamily any<br>#ListenAddress 0.0.0.0<br>#ListenAddress :: <br>These control where the SSH Server listens:<br><strong>0.0.0.0 </strong>— All IPv4 addresses<br><strong>:: </strong>— All IPv6 Addresses<br><strong>any</strong> — both IPv4 and IPv6<br>You can change these if you wish to limit SSH access to a specific IP, e.g your home workstation.</li><li>#LoginGraceTime 2m<br>#PermitRootLogin prohibit-password<br>#StrictModes yes<br>#MaxAuthTries 6<br>#MaxSessions 10 <br>These lines are more focused on authentication measures, such as grace time to login, limiting root access etc.</li><li>#PubkeyAuthentication yes <br>This setting allows SSH key-based logins and the use of the keys in authorized_keys</li><li>#PasswordAuthentication yes <br>This setting allows SSH via password. If you change, yes to no, password-based authentication is rejected; only key-pair authentication is allowed.</li><li>AllowTcpForwarding yes<br>GatewayPorts no <br>The first line allows SSH tunneling (remote/local). The second line binds remote ports to localhost only. If you want to allow remote ports to be reachable from other networks, you must set it to “yes”.</li></ol><p>I know that there are many more configurations to explore, but these are the core ones you should understand. Maybe we’ll look through more in a deep dive article!</p><h3>Set Up Key-Pair Authentication</h3><p>In this section let’s take a look at key-pair authentication and set it up on our hostvm so that we don’t need to use the password each time we access it.</p><p><strong>Generate a key-pair on your host machine</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*w2hzjvGIUaVS5Jbu4s3HDA.png" /></figure><ul><li>Use the command ssh-keygeneither in your terminal or Windows Powershell to generate a key-pair in your local machine.</li><li>When prompted for the file to save, just hit enter to skip; we retain the default name.</li><li>You have the option to add a passphrase as well, but its not necessary so just hit Enter to skip.</li></ul><p>What we did here was use an OpenSSH tool that uses the ED25519 cryptographic algorithm to generate the public/private key pair, and store it in our local machine.</p><p><strong>Copy Public Key to <em>hostvm</em></strong></p><p>For this next step, we’re going to copy the public key we generated on our host machine (your laptop) to the remote server (hostvm).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gN0TivPaUNhDEqLKpmlHgA.png" /></figure><p>You can use the command ssh-copy-id username@hostvm_ip to copy your public key to the <em>hostvm</em> machine.</p><p>You might have noticed my command looks a tad bit different, with the addition of the -o &quot;LogLevel=VERBOSE&quot; command. I added this as a way to see the actual process logs so that you can have an idea of what actually happens behind the scenes. You can see more detailed outputs by changing the “VERBOSE” to :</p><p>- <strong>DEBUG </strong>— View SSH decision process<strong><br>- DEBUG2</strong> — View SSH internal logic, multi-key attempts<strong><br>- DEBUG3 </strong>— View full logs (packet-level debug)</p><p>As you can see, the output shows “Number of key(s) added: 1” meaning our key was successfully copied.</p><p>Now try using the ssh username@hostvm_ip command and you should be able to access it without using the password.</p><p>In closing I want to reaffirm, there is still so much I could cover, but that would make this article just too long. I encourage all of you to further explore whenever necessary because that’s what I’ll be doing!</p><p>In the next article, we’ll cover <strong>SSH File Transfers</strong>, another core feature of OpenSSH.</p><p>That’s all for now, <strong>stay tuned and Ciao!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f4ddeca6983" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Network Protocol 101 #0 Introduction]]></title>
            <link>https://medium.com/@muhdasifss7706/network-protocol-101-0-introduction-1c5e6afd8372?source=rss-733eb1740c45------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c5e6afd8372</guid>
            <dc:creator><![CDATA[Asif Shaik]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 03:38:19 GMT</pubDate>
            <atom:updated>2025-12-09T03:38:19.345Z</atom:updated>
            <content:encoded><![CDATA[<p>Many of us use the internet to communicate, watch movies and work, yet have you ever questioned what are the underlying mechanisms that allow this exchange of information?</p><blockquote>At the heart of networks, lie multiple protocols working together to dictate how devices exchange information, verify identities, and recover from errors.</blockquote><p><strong>This series seeks to demystify these protocols; not in a boring theoretical approach as in lectures, but through hands-on activities that show you exactly how these protocols work.</strong></p><p>In order to follow along, I strongly recommend that you have an Ubuntu VM either setup on Virtual Box, or in your home lab. You can always refer to my guide <a href="https://medium.com/@muhdasifss7706/setting-up-a-virtual-home-lab-zero-cost-b1b8c85147e8">here</a> if you don’t have one yet.</p><h3>The OSI and TCP/IP Stack</h3><p>If you’ve ever studied networking like me, then you’ve surely come across the OSI and TCP/IP model, which are stack based architectures that describe communication between two devices over a network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/967/0*AxFWRzeGnPjWSqGD.png" /><figcaption>Image from <a href="https://www.geeksforgeeks.org/computer-networks/difference-between-osi-model-and-tcp-ip-model/">GeeksforGeeks</a></figcaption></figure><p>The OSI Model is more “theoretical” as it acts as a reference model for communication whereas the TCP/IP model is the more “practical” model used in real life.</p><p><strong>So what do these different layers actually mean?</strong> They describe the flow of messages/information/data into the different layers, using specific protocols at each layer to further construct/deconstruct data, allowing it to reach the recipient across a network.</p><p>The lower layers (Interface, Network, Transport) care about getting data from one point to another, while the upper layer (Application) care about the meaning of the data.</p><p>You don’t need to memorize this diagram, or worry too much if you don’t understand its meaning now, as it will become more and more clear as you follow along this series.</p><h3>What Protocols will We Cover?</h3><p>Each layer has a unique set of protocol that is used to solve different parts of the communication process. Instead of just reading about them like in school, we’re going to take some time to understand each of these protocols in both theory and practical scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*Yd70JcjmZZ98umkl.png" /><figcaption>Image from <a href="http://www.tcpipguide.com/free/t_TCPIPProtocols.htm">The TCP/IP Guide</a></figcaption></figure><p>We will move from the bottom, the Network Interface layer, working on each protocol until we reach the top, with hands-on labs that you can follow along to.</p><p>Well, that about covers it for now. I hope you stay and follow along this series and learn about the protocols that make up your daily life.</p><p><strong>Stay tuned, and Ciao!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c5e6afd8372" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ubuntu Server 101 #0 Introduction]]></title>
            <link>https://medium.com/@muhdasifss7706/ubuntu-server-101-0-introduction-1fbdc5413981?source=rss-733eb1740c45------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fbdc5413981</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[homelab]]></category>
            <dc:creator><![CDATA[Asif Shaik]]></dc:creator>
            <pubDate>Sun, 07 Dec 2025 03:29:35 GMT</pubDate>
            <atom:updated>2025-12-07T16:37:36.236Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KSc6avvibI1Q4qk4DoJaKg.png" /></figure><p>Hello guys!</p><p>I’ve always felt that the best way to learn Linux is to actually <em>break</em> things. Reading documentation helps, but it’s nothing compared to typing a command, watching what happens, and fixing the mess yourself.</p><blockquote><strong>That’s the goal of this series; to walk through Ubuntu the way real engineers use it: hands-on, practical, and grounded in actual tools and scenarios.</strong></blockquote><p>You don’t need prior experience. You don’t need to memorize commands. You don’t need to be “technical.” You just need curiosity, a working laptop, and the willingness to poke at the system until it makes sense.</p><p>Over the next several articles, we’ll get into SSH, firewalls, system services, boot loaders, storage, time synchronization, and even some enterprise Ubuntu features that most people never touch. Everything will be demonstrated in a simple lab environment you can build at home.</p><h3>Recap of Basic Concepts</h3><p>Alright, before we proceed to what you need to prepare to follow along with this series, lets review some basic concepts for those of you who have has no exposure to servers or Linux based systems.</p><h4>“Host” vs “Server”</h4><blockquote><em>In this series you will notice the terms “host” and “server” used quite often, so its important to understand the distinction.</em></blockquote><blockquote><strong><em>Host:</em></strong><em> The machine you connect from (i.e your laptop’s terminal)</em></blockquote><blockquote><strong><em>Server: </em></strong><em>The machine you connect to (i.e your VM running on Vbox)</em></blockquote><h4>Virtual Machines</h4><blockquote><em>Think of a Virtual Machine (VM) as a computer running inside your computer. When you create a VM, your machine allocates a portion of its resources such as storage, memory and CPU to it so that it can run an operating system of its own within your own machine.</em></blockquote><blockquote><em>This allows us to experiment with machines and operating systems, and if we break it, no harm done!</em></blockquote><h4>Secure Shell (SSH)</h4><blockquote><em>Secure Shell or SSH is a network protocol that allows secure communication with remote devices such as servers from our local machine.</em></blockquote><blockquote><em>Most of this series will involve connecting from one machine to another, so SSH is the glue that holds everything together. All you need to know now is the ssh command: ssh user@server_ip , we’ll dive deeper in the next article.</em></blockquote><h4>IP Addressing</h4><blockquote><em>Every machine running on a network gets an IP address, which acts as an identifier so that other devices within the same network can communicate with it using protocols like SSH, FTP etc.</em></blockquote><blockquote><em>Some examples of IP addresses you will see include:</em></blockquote><blockquote><strong><em>192.168.X.X —</em></strong><em> Private range used in home networks<br></em><strong><em>10.X.X.X — </em></strong><em>Private range used by enterprises and home labs<br></em><strong><em>127.0.0.1</em></strong><em> — Loop-back address used to test your device network</em></blockquote><blockquote><em>You don’t need to be a networking expert for this series, but it helps to recognize that two machines on the same IP range can talk directly, and machines on different networks may need a “bridge” or jump host.</em></blockquote><h3>What you Need to Prepare</h3><p>In essence, you need only two things to get started with this series.</p><ol><li>PC/Laptop with sufficient Storage,RAM,CPU (50GB/4GB/2C respectively)</li><li>A good internet connection</li></ol><p>Note that these guidelines are not meant to be followed strictly. You might be using a different Hypervisor (VMWare, Proxmox etc.) and that will not be a problem at all, so long as you are able to create and access your VMs.</p><p>I have already written a detailed guide on how you can set up a virtual home lab at zero cost to follow along in this series, which can be found <a href="https://medium.com/@muhdasifss7706/setting-up-a-virtual-home-lab-zero-cost-b1b8c85147e8">here</a>.</p><p>This guide covers the setup of a Oracle Virtual Box based home lab, covering VM creation, network configuration (static IP etc.) and sanity checks.</p><h3>Let’s Get Started</h3><p>Well, that about covers the introduction to this series. I’m keeping it short and only touching lightly on some concepts just to give you some context before we jump in. If you already have your <em>hostvm</em> ready and accessible via SSH, then you’re ready for the next part!</p><p><strong>Stay tuned, and Ciao!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fbdc5413981" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up a Virtual Home Lab (Zero-cost)]]></title>
            <link>https://medium.com/@muhdasifss7706/setting-up-a-virtual-home-lab-zero-cost-b1b8c85147e8?source=rss-733eb1740c45------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1b8c85147e8</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[linux-tutorial]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Asif Shaik]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 00:39:58 GMT</pubDate>
            <atom:updated>2025-12-05T00:46:34.304Z</atom:updated>
            <content:encoded><![CDATA[<h3>Setting up a Virtual Home-Lab</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KSc6avvibI1Q4qk4DoJaKg.png" /></figure><p>I’m sure you’ve seen various videos of the most insane home-lab setups and wondered, how can I get started? If you have the money and the means, then great, its as easy as getting a server and you’re good to start!</p><blockquote>But is there a more easier, and cheaper way to go about this?</blockquote><p>Before I had my home server, i relied heavily on Oracle’s Virtual Box, a hypervisor that allows us to run virtual machines within our computer/laptop. Set up properly, this alone can act as your home lab to run services and learn server management. This kind of virtualization, often referred to as nested virtualization is sometimes limited but for a beginner its usually more than enough.</p><h3>How do we get started?</h3><ol><li>The first step is to download and install Oracle Virtual Box <br><a href="https://www.virtualbox.org/wiki/Downloads">https://www.virtualbox.org/wiki/Downloads</a></li><li>Download the Ubuntu Server Image ISO<br><a href="https://ubuntu.com/download/server">https://ubuntu.com/download/server</a></li><li>Install and launch Oracle VB and click on the “New” icon to create a new VM.</li></ol><h3>Create Your First VM</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*Ey-7syynATiWt4QLLQoLaw.png" /><figcaption>Naming and OS</figcaption></figure><ul><li>Let’s give t<em>he name Host_VM</em> as it will act as the main server in our lab, connecting and building around other machines.</li><li>In the ISO Image section, select the image downloaded earlier; it should auto-detect the OS type and distribution.</li><li>De-select the “Unattended Installation” option. I want you to get a real feel of how we deploy Ubuntu on bare-metal servers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*a_n0VXl4cDvF6BZic1B85g.png" /><figcaption>Virtual Hardware Allocation</figcaption></figure><p>In allocating resources for VMs, I like to start with 2GB of RAM and 1 CPU and scale up only when necessary. Allocating too much resources to a headless server defeats its purpose of optimization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*5G6mdUYbRZPvj2cqapUkcg.png" /><figcaption>Storage Allocation</figcaption></figure><ul><li>For the disk allocation, let’s go with 25GB, a sweet spot I like to use for any new VMs. Remember, we can always scale up when necessary.</li></ul><p>That’s about it! See how convenient virtual machines are? If you ever mess up, you can create a new one in about 2 minutes or less. Before we proceed to start the VM and set up Ubuntu, let’s make a quick stop to configure the VM network.</p><h3>Configure the VM Network Adapter</h3><p>Now that we have created the VM, some network configurations are in way to ensure that your VM is always reachable via the same IP address. Now, what we will be doing here is essentially changing the VM’s network adapter configuration.</p><p>Think of the Network Adapter as the VM’s LAN/Network Cable. Just as your laptop has a network port that plugs into your router, your VM has its own “virtual” version of it. This adapter determines how the VM connects to your network, whether it gets its own IP address etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*hJWwTgxJVyd_-6wseQHosQ.png" /><figcaption>Network Adapter Configuration</figcaption></figure><p>By default, your VMs’ network adapter is configured as NAT, which stands for Network Address Translation. This means that the VM gets an internal IP usually in the range of 10.X.X.X which exists only inside Virtual Box.</p><p><strong>In NAT mode, your laptop acts as a router translating traffic back and forth between the VM and the internet.</strong></p><p>The downside of NAT, is that your VM becomes difficult to reach from other devices in the network. Difficult, but not impossible.</p><p>So what’s the fix? We’ll switch to <strong>Bridged Adapter </strong>mode. In this mode, the adapter acts as a “bridge” to your network, allowing your VM to appear as a device of its own within your network. It even gets assigned an IP address we can use to communicate with by your router.</p><p>For the name, you will typically have options like eno1 and wlo1 which indicate your Ethernet and WiFi cards respectively. If you are using WiFi like me, choose wlo1 (or any device that starts with w as it indicates wireless).</p><h3>Setting Up Ubuntu Server OS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*Q3VdKfG_LhvcHrBq2OtEng.png" /><figcaption>Installer Screen</figcaption></figure><p>We will now be using the text-based UI to setup up our Ubuntu server. You can use the arrow keys to change selections and press Enter to confirm your selection.</p><p>For the first few parts, just use the default options until you reach the Network Configuration section.</p><h4>Configuring Ubuntu VM Network</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9X01546mVfncXTh1BFO2Q.png" /></figure><p>Click on the interface and select the Edit IPv4. Hit enter on the “Automatic (DHCP) field and select manual. Now before we fill up the fields, I think it’s important to understand the information it requires.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*_63NY0uxjzhDiRzD86bpzg.png" /><figcaption>Network Configuration</figcaption></figure><ul><li><strong>Subnet: </strong>This is the address that defines your local/home network range i.e Subnet is 192.168.0.0/24 for IP range 192.168.0.0 to 192.168.0.255 (usable IP excludes first/last)</li><li><strong>Gateway: </strong>IP address of your router, used by devices to communicate with outside networks i.e the Internet.</li></ul><h4>Determine your Subnet and Gateway Address</h4><p>You must be wondering at this point, how the hell am I going to figure this out? Well, its as easy as just typing a command in your laptop’s Windows Powershell terminal.</p><p>Run the command — <strong>ipconfig </strong>and you will see the following output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*uJYlCnbeRBgbolsNTwXtSQ.jpeg" /><figcaption>ipconfig Output</figcaption></figure><p>The gateway address is simply the Default Gateway IP. The subnet address just requires an extra step, since we’re only given the mask. A mask of 255.255.255.0 tells us that the first three numbers of our IP belong to the network, and the last number belongs to individual devices.</p><p>This means we simply take our IP (192.168.0.X) and replace the last number with 0, giving us the subnet <strong>192.168.0.0/24</strong>.</p><h4>Choosing a Static IP for your VM</h4><p>Here comes the tricky part; by default your router automatically assigns IP addresses for any new devices that join your network. It clutches onto this pool of addresses known as the DHCP Range and assigns it dynamically to new devices.</p><p>We have to tread carefully as to pick an address because if we pick an address within the DHCP pool, or even worse, an already assigned IP address, it will cause a conflict.</p><p>So how do we proceed? Well, if you’re setting up a home lab, eventually you will need to access and modify your router configuration; might as well be now. Remember our gateway IP address? Time to put it to use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*qlmSQ2TN5cXFy1hTwAtFVA.png" /><figcaption>Router Landing Page</figcaption></figure><p>Enter your Gateway IP in any browser and hit enter. This will lead you to your router’s configuration page. The username and password are usually written below your router, but if its not, it should be using the default credentials specific to your router brand; a quick google search should solve this. Your last option is of course to contact your ISP for the info.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*m4SQUKFu2RdHU9YamMiZrA.png" /><figcaption>Router’s IPv4 Configuration</figcaption></figure><p>Once you log in, you should take some time to explore the interface to get a picture of where everything is. Its alright if you don’t understand what each button does, but for now you need to look for two things:</p><p><strong>List of IP addresses in use</strong><br>The first item is important to prevent any conflict of any sort. For simplicity sake, I will use the IP <strong>192.168.0.20</strong> ; use this only if it remains unused in your network.</p><p><strong>Button/Page to add static IP<br></strong>In this page, you will need two things. The IP address you plan to make static (192.168.0.20) and the MAC address of the VM. If the IP address is the logical identifier for the VM, think of the MAC address as the physical identifier unique to your VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*yfYAiiAjs8R3trDHie_5hw.png" /><figcaption>Network Adapter Configuration</figcaption></figure><p>You can see that we can obtain the VM MAC address from the Virtual Box settings under the Network tab. We need this address because we will, in the router, bind the selected IP address to the VM MAC address. This means that the router will always provide the selected IP to the device that has the matching MAC address, i.e our VM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*7R-Bs6IU9eh2FO3WbXfm2w.png" /><figcaption>Static IP Configuration</figcaption></figure><p>As you can see, the MAC address on the Virtual Box settings may forego the semicolon which may cause issues in some routers, but its an easy fix. Just add a colon (:) after every 2 characters. Apply the changes, and reboot your router if necessary, lets pick up where we left off on our Ubuntu setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*mtqjuxlhEEhFT8WpvVF1Ow.png" /><figcaption>Ubuntu Network Configuration</figcaption></figure><p>So this is what your final configuration should look like. We use google’s Domain Name Server (DNS) which is 8.8.8.8 to resolve hostnames. Without DNS, your server can reach the internet but cannot resolve domain names (e.g. translating google.com into an IP address). You can skip the Proxy address field.</p><h4>Setting Up Storage for VM</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*XUqwhljRR2cCZMHRHMNa6Q.png" /><figcaption>Ubuntu Storage Settings</figcaption></figure><p>Wondering what LVM is? It’s a tool to manage disk partitions within our Linux system. For now, deselect the LVM option as we’ll cover this part later on in another series. Continue by just pressing Enter for the remaining options until you reach the Profile Configuration.</p><h4>Setting Up Server Profile</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*ypAMu2WAqfF4xrJV1fqPBA.png" /><figcaption>Ubuntu User Profile</figcaption></figure><p>The next step will be configuring your server’s main user and hostname. For uniformity, again, use <em>hostvm </em>as the server name. You can choose any username/password, just make sure you remember it as we’ll use it quite frequently.</p><h4>Installing OpenSSH</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*xQwMpYwh5WYc7FdQRi33qg.png" /><figcaption>OpenSSH Configuration</figcaption></figure><p>When prompted, enable the Install OpenSSH server option, because we will rely heavily on SSH to communicate with our machines. SSH is a network protocol that allows you to remotely run commands on the server from other devices in the network.</p><h4>Reboot Server</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*efcUNo-rcPAa34y6bWONyA.png" /><figcaption>Installation Process</figcaption></figure><p>If you followed along in the steps, you should reach this final screen which prompts you to reboot the system. This means that your VM setup is complete and you are ready to start using your own home lab!</p><h4>Errors after Reboot?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*xmD2WXASJBCZObeyDA3G1Q.png" /></figure><p>If you see this error message after your reboot, you must be wondering what you did wrong right? Well, don’t worry, this message just means that the installer wants you to unmount the ISO image by pressing Enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*TDK2WSsTyTLq-m7vJjN1XQ.png" /></figure><p>Hit Enter and the system will reboot again, and after that hit Enter again, and you will see the login prompt. Enter your credentials and you will enter the Ubuntu Command Line Interface (CLI).</p><h3>Basic Server Sanity Checks</h3><p>Now that we’ve successfully set up our first VM, let’s perform some sanity checks to ensure its configured the way we want it to be.</p><h4>Verify IP/MAC Address</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*2SfFINEIJ3wDDPQWALDp4A.png" /></figure><p>Run the command ip a<strong> </strong>on your VM to get the IP address configurations. Now, verify that the IP attached to the enp0s3 interface is as we configured and the MAC address matches as well.</p><h4>Test Connectivity to Internet</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*Ej-BLC72ubVlqdo1MYeabg.png" /></figure><p>Run the command ping medium.com to perform a ping test, which is a simple way to test the connectivity between your device and a website. As long as the results show 0% packet loss, this means that your VM has internet connectivity. (Hint: Use Ctrl + C to terminate the ping test)</p><h4>Verify Storage Volume</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*pFHucpMr_q_SiY7yGclJiA.png" /></figure><p>Run the command df -h to view the available storage mounted, and verify that it is the same amount as you set earlier in the initial configuration.</p><h4>Verify SSH to VM</h4><p>Remember how we spent so much time configuring a static IP for the VM? The whole point was to ensure it was always reachable via the same IP using SSH. So now, let’s try SSH into the VM from your laptop/PC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*eg_bR8Q7g446LGWoMtCCbw.png" /></figure><ul><li>Use the command ssh yourusername@your_vm_ip in your laptop’s Powershell terminal. As you can see, my laptop uses Ubuntu, so it might look a bit different, but the steps are exactly the same.</li><li>When asked if you want to continue connecting, type yes and hit Enter. You will then be prompted to enter the password; follow through and you will be led to the VM’s terminal as shown below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*MoR2pcwv3orFXA91ZHnt2w.png" /></figure><p>Most times, we will be using SSH to perform tasks on our VM since your Powershell terminal is more user friendly than the Virtual Box console, and you can even install software like MobaxTerm which offers a free license and more user-friendly features like multi-line pasting, saving terminal outputs, system monitoring etc.</p><h4>One Last Step!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*psfPuQg7hVFPQk7-Lxm0Rw.png" /></figure><p>Before we end this, lets update and upgrade all our system packages to the latest version; run the command sudo apt update &amp;&amp; sudo apt upgrade and type Y followed by Enter when prompted to allow system changes.</p><p>Well, that about covers setting up your first home lab VM, hope you had fun and learned a lot in the process. I will be publishing a complete series called Ubuntu Server 101 very soon to help you get familiar with some server administration concepts which are crucial to a home lab setup.</p><p>If you have questions or get stuck during setup, feel free to drop a comment. I respond to all my readers.</p><p><strong>Stay tuned, and Ciao!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1b8c85147e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>