Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eun/sshkeys
Get all ssh public keys of a ssh server
https://github.com/eun/sshkeys
go golang golang-application golang-library ssh ssh-keys ssh-server ssh-tool sshd
Last synced: 2 months ago
JSON representation
Get all ssh public keys of a ssh server
- Host: GitHub
- URL: https://github.com/eun/sshkeys
- Owner: Eun
- License: mit
- Created: 2017-08-11T11:21:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-13T04:55:39.000Z (7 months ago)
- Last Synced: 2024-06-21T07:37:26.823Z (7 months ago)
- Topics: go, golang, golang-application, golang-library, ssh, ssh-keys, ssh-server, ssh-tool, sshd
- Language: Go
- Size: 1.79 MB
- Stars: 21
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# sshkeys
[![Actions Status](https://github.com/Eun/sshkeys/workflows/push/badge.svg)](https://github.com/Eun/sshkeys/actions)
[![Coverage Status](https://coveralls.io/repos/github/Eun/sshkeys/badge.svg?branch=master)](https://coveralls.io/github/Eun/sshkeys?branch=master)
[![PkgGoDev](https://img.shields.io/badge/pkg.go.dev-reference-blue)](https://pkg.go.dev/github.com/Eun/sshkeys)
[![go-report](https://goreportcard.com/badge/github.com/Eun/sshkeys)](https://goreportcard.com/report/github.com/Eun/sshkeys)
---
Get all ssh public keys of an ssh server.## Installation
### Docker
```shell
$ docker run --rm -ti ghcr.io/eun/sshkeys:latest -algorithm=sha256 -encoding=base64 github.com
```### Prebuild
Download in the [Releases](https://github.com/Eun/sshkeys/releases) section.### go
```shell
$ go install github.com/Eun/sshkeys/cmd/sshkeys
```## Usage
```shell
Usage: sshkeys [options]
Options:
-a authorized_keys
-algorithm=authorized_keys
Algorithm to hash the public keys, valid algorithms are: sha1, sha256, md5, authorized_keys-e=
-encoding=
Encoding to encode the hashed keys, valid encodings are: hex, base32, base64 (only used for algorithms sha1, sha256 and md5)-o=console
-output=console
Output format, valid formats are: console, json-c=4
-concurrent=4
Concurrent workers-t=60s
-timeout=60s
Connection timeout
```### Examples
```shell
$ sshkeys example.com
$ sshkeys -algorithm=sha256 -encoding=base64 -output=json github.com:22
```## Build History
[![Build history](https://buildstats.info/github/chart/Eun/sshkeys?branch=master)](https://github.com/Eun/go-bin-template/actions)