Skip to Content
Mastering Linux Security and Hardening - Second Edition
book

Mastering Linux Security and Hardening - Second Edition

by Donald A. Tevault
February 2020
Intermediate to advanced
666 pages
15h 45m
English
Packt Publishing
Content preview from Mastering Linux Security and Hardening - Second Edition

Hands-on lab – setting encryption policies on CentOS 8

Start with a fresh CentOS 8 VM and the scanner VM that you've been using. Now, follow these steps:

  1. On a CentOS 8 VM, use the update-crypto-policies utility to verify that it's running in DEFAULT mode:
sudo update-crypto-policies --show
  1. Scan the CentOS 8 VM in its DEFAULT configuration and save the output to a file:
sudo ssh_scan -t 192.168.0.161 -o ssh_scan-161.json
  1. On the CentOS 8 VM, set the system-wide crypto policy to FUTURE and reboot the VM:
sudo update-crypto-policies --set FUTUREsudo shutdown -r now
  1. On the scanner VM, open the ~/.ssh/known_hosts file in your text editor. Delete the entry that was previously made for the CentOS 8 VM and save the file. (We have to do this ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Security and Hardening - Third Edition

Mastering Linux Security and Hardening - Third Edition

Donald A. Tevault
UNIX and Linux System Administration Handbook, 5th Edition

UNIX and Linux System Administration Handbook, 5th Edition

Trent R. Hein, Evi Nemeth, Garth Snyder, Ben Whaley, Dan Mackin

Publisher Resources

ISBN: 9781838981778Supplemental Content