Skip to content

Audit your GitHub Organization users' SSH keys for key length and type

License

Notifications You must be signed in to change notification settings

jkingsman/SSHaudit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Audit your GitHub Organization users' SSH keys for key length and type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages