ssh-auditor
ssh-auditor copied to clipboard
Reset Credential Interval
- I would like to be able to reset the check interval for all credentials
- I would like to be able to drop the whole credentials table
- I would like to be able to set a new interval value for all credentials at once
Many thanks
It looks like your PR covers the first 2 of these.
I think for the 3rd I would need a command like
cred update-scan-interval --all 10
cred update-scan-interval --user root 1
Is there a way to reset the database to remove old host, etc
@monrorMe old hosts should eventually just be ignored unless a discover picks them up, but if you want to permanently delete them you can do that now with some sqlite commands:
delete from hosts where hostport = '1.2.3.4:22';
delete from host_creds where hostport = '1.2.3.4:22';
delete from host_changes where hostport = '1.2.3.4:22';
Adding a ssh-auditor host delete command would be pretty easy.