Add clean: Cleanup of usage traces to ~/.ssh/known_hosts file.
This commit is contained in:
parent
eaa2339336
commit
8c0b9da8b3
|
@ -120,6 +120,7 @@ Use the following guidelines to reduce the attack surface and improve the reliab
|
||||||
|
|
||||||
#### Clear the current log:
|
#### 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 /var/log/ -name "*.log.*" -exec shred -u {} \;
|
# find /var/log/ -name "*.log.*" -exec shred -u {} \;
|
||||||
# find / -name "authorized_keys" -exec shred -u {} \;
|
# find / -name "authorized_keys" -exec shred -u {} \;
|
||||||
|
|
|
@ -123,6 +123,7 @@ $ cd /opt/harbian-audit-master/etc/conf.d
|
||||||
|
|
||||||
#### Final fix
|
#### Final fix
|
||||||
```
|
```
|
||||||
|
$ echo > ~/.ssh/known_hosts
|
||||||
$ cd /opt/harbian-audit-master
|
$ 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.1.35_freeze_auditd_conf.cfg
|
||||||
# sed -i 's/^status=.*/status=enabled/' etc/conf.d/8.4.1_install_aide.cfg
|
# sed -i 's/^status=.*/status=enabled/' etc/conf.d/8.4.1_install_aide.cfg
|
||||||
|
|
Loading…
Reference in New Issue