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 – installing and using ssh_scan

For this lab, you can use your Ubuntu machine or either of your CentOS machines. Let's get started:

  1. ssh_scan isn't in the repositories of any of our Linux distributions. It's written in the Ruby language and comes packaged as a Ruby gem. To get started, we need to install the ruby and gem packages. On Ubuntu, do the following:
sudo apt updatesudo apt install ruby gem

On CentOS 7, do the following:

sudo yum install ruby gem

On CentOS 8, do the following:

sudo dnf install ruby gem
  1. Install the ssh_scan gem by using the following command:
sudo gem install ssh_scan
  1. In all cases, the ssh_scan executable will be installed in the /usr/local/bin/ directory. A long-standing quirk of CentOS is that if ...
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