ssh-auditor icon indicating copy to clipboard operation
ssh-auditor copied to clipboard

Reset Credential Interval

Open Neo23x0 opened this issue 7 years ago • 3 comments

  • 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

Neo23x0 avatar Aug 20 '18 10:08 Neo23x0

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

JustinAzoff avatar Aug 20 '18 20:08 JustinAzoff

Is there a way to reset the database to remove old host, etc

monrorMe avatar Jan 16 '19 18:01 monrorMe

@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.

JustinAzoff avatar Jan 17 '19 02:01 JustinAzoff