# Sshaudit hardening guideline + file manager

**URL:** <https://forum.hestiacp.com/t/sshaudit-hardening-guideline-file-manager/5350>\
**Category:** Community Support\
**Created:** [January 14, 2022, 10:13am UTC](https://forum.hestiacp.com/t/sshaudit-hardening-guideline-file-manager/5350 "2022-01-14T10:13:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/chris/32/2327_2.png) [@chris](https://forum.hestiacp.com/u/chris)\
**Post date:** [January 14, 2022, 10:13am UTC](https://forum.hestiacp.com/t/sshaudit-hardening-guideline-file-manager/5350/1 "2022-01-14T10:13:33Z")

</div>

Hello,  
I would like to combine (some of) the [hardening guide](https://sshaudit.com/hardening_guides.html#ubuntu_20_04_lts) of [sshaudit.com](http://sshaudit.com) in combination with a working file manager. As soon as I apply the given rules my file manager get’s the ‘Unknown error’ as described [here](https://forum.hestiacp.com/t/file-manager-error-unknown-error/1970/17).  
I’m on a fresh install of Ubuntu 20.04 LTS and the latest HestiaCP v1.5.4 (nginx only).  
As @eris suggested I removed /etc/ssh/sshd.conf.d/ssh-audit\_hardening.conf which works very well but if possible I would also like to further improve my ssh security.  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [January 14, 2022, 12:13pm UTC](https://forum.hestiacp.com/t/sshaudit-hardening-guideline-file-manager/5350/2 "2022-01-14T12:13:21Z")

</div>

This are the default keys that are enabled  
gssapikexalgorithms gss-group14-sha256-,gss-group16-sha512-,gss-nistp256-sha256-,gss-curve25519-sha256-,gss-group14-sha1-,gss-gex-sha1-

ciphers [chacha20-poly1305@openssh.com](mailto:chacha20-poly1305@openssh.com),aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com

macs [umac-64-etm@openssh.com](mailto:umac-64-etm@openssh.com),umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1

kexalgorithms [curve25519-sha256,curve25519-sha256@libssh.org](mailto:curve25519-sha256,curve25519-sha256@libssh.org),ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

Check what the differences are and slowly test

---

<div class="post-metadata">

**Author:** ![chris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/chris/32/2327_2.png) [@chris](https://forum.hestiacp.com/u/chris)\
**Post date:** [January 14, 2022, 9:37pm UTC](https://forum.hestiacp.com/t/sshaudit-hardening-guideline-file-manager/5350/3 "2022-01-14T21:37:43Z")

</div>

Hi @eris, thank you so much! I was able to successfully execute step 1, 2 and 3 of the guideline and then compared your input with the guidelines in step 4 (“[Restrict supported key exchange, cipher, and MAC algorithms](https://www.ssh-audit.com/hardening_guides.html#ubuntu_20_04_lts)”). I had to take out all nCiphers, nMACs and nKexAlgorithms only leaving the nHostKeyAlgorithms untouched:

```auto
echo -e "\n# Restrict key exchange, cipher, and MAC algorithms, as per sshaudit.com\n# hardening guide.\nHostKeyAlgorithms ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256,rsa-sha2-512,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com" > /etc/ssh/sshd_config.d/ssh-audit_hardening.conf

```

After executing this adjusted command my file manager still works as expected but unfortunately it doesn’t result in an A grade at [sshaudit.com](http://sshaudit.com). I’m not sure which ones, of the ones you mentioned would effect the file manager.

Thanks again for your help!

---

<div class="post-metadata">

**Author:** ![eris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/eris/32/1241_2.png) [@eris](https://forum.hestiacp.com/u/eris)\
**Post date:** [January 14, 2022, 10:10pm UTC](https://forum.hestiacp.com/t/sshaudit-hardening-guideline-file-manager/5350/4 "2022-01-14T22:10:44Z")

</div>

We use for the file manger a “3rd” party app and that app is based on Flysystem + SFTP Adapter… [SFTP Adapter - Flysystem](https://flysystem.thephpleague.com/v1/docs/adapter/sftp/)

---

<div class="post-metadata">

**Author:** ![chris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/chris/32/2327_2.png) [@chris](https://forum.hestiacp.com/u/chris)\
**Post date:** [January 14, 2022, 10:50pm UTC](https://forum.hestiacp.com/t/sshaudit-hardening-guideline-file-manager/5350/5 "2022-01-14T22:50:40Z")

</div>

Thanks, I see that makes sense. So i’ll probably have to leave it as it is then, correct? Was going for that “A” 😉

---

<div class="post-metadata">

**Author:** ![jlguerrero](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/jlguerrero/32/954_2.png) [@jlguerrero](https://forum.hestiacp.com/u/jlguerrero)\
**Post date:** [January 15, 2022, 1:41am UTC](https://forum.hestiacp.com/t/sshaudit-hardening-guideline-file-manager/5350/6 "2022-01-15T01:41:05Z")

</div>

You could submit a PR so we can all benefit from extra security

---

<div class="post-metadata">

**Author:** ![chris](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/chris/32/2327_2.png) [@chris](https://forum.hestiacp.com/u/chris)\
**Post date:** [January 15, 2022, 11:35am UTC](https://forum.hestiacp.com/t/sshaudit-hardening-guideline-file-manager/5350/7 "2022-01-15T11:35:07Z")

</div>

Hi @jlguerrero, thanks I will!

---

<div class="post-metadata">

**Author:** ![jlguerrero](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/jlguerrero/32/954_2.png) [@jlguerrero](https://forum.hestiacp.com/u/jlguerrero)\
**Post date:** [January 15, 2022, 12:28pm UTC](https://forum.hestiacp.com/t/sshaudit-hardening-guideline-file-manager/5350/8 "2022-01-15T12:28:53Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [February 14, 2022, 12:29pm UTC](https://forum.hestiacp.com/t/sshaudit-hardening-guideline-file-manager/5350/9 "2022-02-14T12:29:17Z")

</div>

Closed on February 14, 2022, 12:29pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
