Audit your GitHub Organization users' SSH keys for key length and type
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE.md
README.md
index.js
npm-shrinkwrap.json
package.json
screenshot.png

README.md

SSHaudit

Audit your GitHub organization members' SSH keys for size, count, and type.

node index.js -t <GitHub personal token> -o <organization name>

Output Screenshot

Installation

The following recommended installation requires npm. If you are unfamiliar with npm, see the npm docs. Npm comes installed with Node.js since node version 0.8.x therefore you likely already have it.

Clone this repository:

git clone https://github.com/jkingsman/SSHaudit.git

Install the necessary dependencies:

npm install

Usage

node index.js -t <GitHub personal token> -o <organization name> [-s keysize] [-c count] [-e] [-f]

The GitHub personal token can be generated here; it requires only the write:org permissions.

Omitting the organization name will list all organizations you're a member of.

Options

-s, --size [keysize]

  • Keys smaller than keysize in bits will be flagged (default = 1024)

-c, --count [number]

  • Users with fewer than number keys will be flagged (default = 1)

-e, --elliptic

  • Users lacking elliptic keys will be flagged (disabled by default)

-f, --flaggedonly

  • Only display users who are flagged according to the previous rules (default displays all users)

License

Licensed under the MIT License.


Flattr this