Managing SSH Access

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

In this lab, we will restrict SSH access to specific user accounts from specific sources. This will allow us to granularly control SSH access to a host.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Allow Susan SSH access from host susan-ws.office21.net
  1. Edit the /etc/ssh/sshd_config file with the following line:

    sudo vi /etc/ssh/sshd_config
    • enter password for cloud_user
    AllowUsers Susan@susan-ws.office21.net  
Permit root SSH login from the subnet 10.0.1.0/24
  1. The first step is to permit root logins by removing the comment in front of the line #PermitRootLogin yes in the /etc/ssh/sshd_conf file.
  2. Secondly, we need to add root@10.0.1.0/24 to the AllowUsers line in the /etc/ssh/sshd_config file.
  3. Now we need to restart the sshd service so the changes we made will take affect:

    systemctl restart sshd  

Additional Resources

You've been tasked with locking down SSH access to a server to specific users and sources. You've been asked to make the following changes on a Red Hat server:

  1. Permit user Susan to SSH only from "susan-ws.office21.net"
  2. Permit root to log in from any IP in the network "10.0.1.0/24"

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!