# README
sshkeys
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
# Packages
No description provided by the author
# Functions
AuthorizedKey creates the authorized_key of the provided public key.
DefaultKeyAlgorithms returns the default ssh key algorithms.
FingerprintMD5 creates the md5 fingerprint of the provided public key.
FingerprintSHA1 creates the sha1 fingerprint of the provided public key.
FingerprintSHA256 creates the sha256 fingerprint of the provided public key.
GetKeys gets the public keys for a host.
GetVersion returns the ssh version of the host.
SumToHexString formats a sum in a aa:bb:cc:dd:ee:ff:..
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author