Add clean: Cleanup of usage traces to ~/.ssh/known_hosts file.

This commit is contained in:
Samson-W 2023-07-15 01:23:40 +08:00
parent eaa2339336
commit 8c0b9da8b3
2 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,7 @@ Use the following guidelines to reduce the attack surface and improve the reliab
#### Clear the current log:
```
$ echo > ~/.ssh/known_hosts
# find /var/log/ -name "*.log" -exec shred -u {} \;
# find /var/log/ -name "*.log.*" -exec shred -u {} \;
# find / -name "authorized_keys" -exec shred -u {} \;

View File

@ -123,6 +123,7 @@ $ cd /opt/harbian-audit-master/etc/conf.d
#### Final fix
```
$ echo > ~/.ssh/known_hosts
$ cd /opt/harbian-audit-master
# sed -i 's/^status=.*/status=enabled/' etc/conf.d/8.1.35_freeze_auditd_conf.cfg
# sed -i 's/^status=.*/status=enabled/' etc/conf.d/8.4.1_install_aide.cfg