Audit your GitHub organization members' SSH keys for size, count, and type.
node index.js -t <GitHub personal token> -o <organization name>
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
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.
-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)
Licensed under the MIT License.