Author Topic: How to Adjust my SSH Server ? Almalinux 8  (Read 476 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to Adjust my SSH Server ? Almalinux 8
« on: January 22, 2025, 12:34:04 AM »
Greetings everyone.
I have used SSH-audit package to determine any flaws on my SSH server settings.
https://github.com/jtesta/ssh-audit

I have got the following recommendations:

Quote
# algorithm recommendations (for OpenSSH 8.0)
(rec) -aes128-cbc                           -- enc algorithm to remove
(rec) -aes256-cbc                           -- enc algorithm to remove
(rec) -diffie-hellman-group-exchange-sha1   -- kex algorithm to remove
(rec) -ecdh-sha2-nistp256                   -- kex algorithm to remove
(rec) -ecdh-sha2-nistp384                   -- kex algorithm to remove
(rec) -ecdh-sha2-nistp521                   -- kex algorithm to remove
(rec) -ecdsa-sha2-nistp256                  -- key algorithm to remove
(rec) -ssh-rsa                              -- key algorithm to remove
(rec) +aes192-ctr                           -- enc algorithm to append
(rec) -diffie-hellman-group14-sha1          -- kex algorithm to remove
(rec) -hmac-sha1                            -- mac algorithm to remove
(rec) -hmac-sha1-etm@openssh.com            -- mac algorithm to remove
(rec) -hmac-sha2-256                        -- mac algorithm to remove
(rec) -hmac-sha2-512                        -- mac algorithm to remove
(rec) -umac-128@openssh.com                 -- mac algorithm to remove

Can I use the following tutorial to fix it or CWP Pro or Almalinux8 requires another procedure?

https://www.ssh-audit.com/hardening_guides.html#debian_12

Offline
*****
Re: How to Adjust my SSH Server ? Almalinux 8
« Reply #1 on: January 22, 2025, 01:12:29 AM »
There are instructions ay the link for Rocky 9 and RHEL8.

So those will work on AlmaLinux 8 and 9.

But remember always crate a backup of the confg file, BEFORE making any changes.

Snapshots are even better.


firewall-cmd isn't used on CWP server, in fact it disables it for CSF/LFD.

Offline
*
Re: How to Adjust my SSH Server ? Almalinux 8
« Reply #2 on: January 22, 2025, 01:27:41 AM »
Thanks for the reply. I followed the tutorial but im still getting this:

Quote
# algorithm recommendations (for OpenSSH 8.0)
(rec) -ecdh-sha2-nistp256                   -- kex algorithm to remove
(rec) -ecdh-sha2-nistp384                   -- kex algorithm to remove
(rec) -ecdh-sha2-nistp521                   -- kex algorithm to remove
(rec) -ecdsa-sha2-nistp256                  -- key algorithm to remove
(rec) -ssh-rsa                              -- key algorithm to remove
(rec) -diffie-hellman-group14-sha1          -- kex algorithm to remove
(rec) -hmac-sha1                            -- mac algorithm to remove
(rec) -hmac-sha1-etm@openssh.com            -- mac algorithm to remove
(rec) -hmac-sha2-256                        -- mac algorithm to remove
(rec) -hmac-sha2-512                        -- mac algorithm to remove
(rec) -umac-128@openssh.com                 -- mac algorithm to remove
(rec) -umac-64-etm@openssh.com              -- mac algorithm to remove
(rec) -umac-64@openssh.com                  -- mac algorithm to remove