Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.

ekino/gitlab-ssh-key-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Check SSH Keys on a GitLab server

This is a quick code to check if ssh keys available on a Gitlab server is exposed to similar thread as described in the blog "Auditing GitHub users’ SSH key quality".

Requirements

  • ssh-keygen command available in your path
  • go command available in your path

Installation

go get github.com/ekino/gitlab-ssh-key-check

Configuration

create a config.json file in the $GOPATH/src/github.com/ekino/gitlab-ssh-key-check folder

The configuration is:

{
  "host": "https://your.gitlab-server.com",
  "api_path": "/api/v3",
  "token": "your admin api token",
  "weak_key": 1023
}

Usage

go run main.go

About

Check SSH Key on a GitLab server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages