Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Red Hat Enterprise Linux 9 Administration

You're reading from   Red Hat Enterprise Linux 9 Administration A comprehensive Linux system administration guide for RHCSA certification exam candidates

Arrow left icon
Product type Paperback
Published in Nov 2022
Publisher Packt
ISBN-13 9781803248806
Length 530 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Authors (4):
Arrow left icon
Scott McCarty Scott McCarty
Author Profile Icon Scott McCarty
Scott McCarty
Miguel Pérez Colino Miguel Pérez Colino
Author Profile Icon Miguel Pérez Colino
Miguel Pérez Colino
Pedro Ibañez Requena Pedro Ibañez Requena
Author Profile Icon Pedro Ibañez Requena
Pedro Ibañez Requena
Pablo Iranzo Gómez Pablo Iranzo Gómez
Author Profile Icon Pablo Iranzo Gómez
Pablo Iranzo Gómez
Arrow right icon
View More author details
Toc

Table of Contents (26) Chapters Close

Preface 1. Part 1 – Systems Administration – Software, User, Network, and Services Management
2. Chapter 1: Getting RHEL Up and Running FREE CHAPTER 3. Chapter 2: RHEL 9 Advanced Installation Options 4. Chapter 3: Basic Commands and Simple Shell Scripts 5. Chapter 4: Tools for Regular Operations 6. Chapter 5: Securing Systems with Users, Groups, and Permissions 7. Chapter 6: Enabling Network Connectivity 8. Chapter 7: Adding, Patching, and Managing Software 9. Part 2 – Security with SSH, SELinux, a Firewall, and System Permissions
10. Chapter 8: Administering Systems Remotely 11. Chapter 9: Securing Network Connectivity with firewalld 12. Chapter 10: Keeping Your System Hardened with SELinux 13. Chapter 11: System Security Profiles with OpenSCAP 14. Part 3 – Resource Administration – Storage, Boot Process, Tuning, and Containers
15. Chapter 12: Managing Local Storage and Filesystems 16. Chapter 13: Flexible Storage Management with LVM 17. Chapter 14: Advanced Storage Management with Stratis and VDO 18. Chapter 15: Understanding the Boot Process 19. Chapter 16: Kernel Tuning and Managing Performance Profiles with tuned 20. Chapter 17: Managing Containers with Podman, Buildah, and Skopeo 21. Part 4 – Practical Exercises
22. Chapter 18: Practice Exercises – 1 23. Chapter 19: Practice Exercise – 2 24. Index 25. Other Books You May Enjoy

Enabling root access via SSH (and when not to do it)

As we introduced in the previous section, there are some options that directly affect the access as root to the system, as shown in the following example:

PermitRootLogin
PasswordAuthentication

Depending on your security requirements, there might be better options or combinations to use, so let’s discuss some scenarios.

It’s common to set some requirements such as not allowing root login, which can be set via PermitRootLogin no in the sshd configuration file (/etc/ssh/sshd_config). This enforces that every user willing to become root will need to first SSH into the system with another user, and once connected, use su or sudo to switch to the root user.

Alternatively, you can use PermitRootLogin prohibit-password, which will only allow connections to the system as root when using public key authentication (ahead in this chapter).

Probably, the worst case is to set PermitRootLogin yes as this will allow...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime