Get all ssh public keys of an ssh server.
$ docker run --rm -ti ghcr.io/eun/sshkeys:latest -algorithm=sha256 -encoding=base64 github.com
Download in the Releases section.
$ go install github.com/Eun/sshkeys/cmd/sshkeys
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
$ sshkeys example.com
$ sshkeys -algorithm=sha256 -encoding=base64 -output=json github.com:22