Skip to content

Eun/sshkeys

Repository files navigation

sshkeys

Actions Status Coverage Status PkgGoDev go-report

Get all ssh public keys of an ssh server.

Installation

Docker

$ docker run --rm -ti ghcr.io/eun/sshkeys:latest -algorithm=sha256 -encoding=base64 github.com

Prebuild

Download in the Releases section.

go

$ go install github.com/Eun/sshkeys/cmd/sshkeys

Usage

Usage: sshkeys [options] <host>
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

$ sshkeys example.com
$ sshkeys -algorithm=sha256 -encoding=base64 -output=json github.com:22

Build History

Build history