Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset Credential Interval #3

Open
Neo23x0 opened this issue Aug 20, 2018 · 3 comments
Open

Reset Credential Interval #3

Neo23x0 opened this issue Aug 20, 2018 · 3 comments

Comments

@Neo23x0
Copy link

Neo23x0 commented Aug 20, 2018

  • 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

@JustinAzoff
Copy link
Contributor

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

@monrorMe
Copy link

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

@JustinAzoff
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants