sshpk-verify (1) Linux Manual Page
NAME
sshpk-verify – verify a signature on data using an SSH key
SYNOPSYS
sshpk-verify -i KEYPATH -s SIGNATURE [OPTION…]
DESCRIPTION
Takes in arbitrary bytes and a Base64-encoded signature, and verifies that the signature was produced by the private half of the given SSH public key.
EXAMPLES
-
$ printf 'foo' | sshpk-verify -i ~/.ssh/id_ecdsa -s MEUCIQCYp... OK $ printf 'foo' | sshpk-verify -i ~/.ssh/id_ecdsa -s GARBAGE... NOT OK
EXIT STATUS
0
1
2
3
OPTIONS
-v, –verbose
-i KEY, –identity=KEY
KEY must be a relative or
sshpk
-s BASE64, –signature=BASE64
-f PATH, –file=PATH
-H HASH, –hash=HASH
sha1,
sha256 or sha512. Some key types may place restrictions on which hash
-t FORMAT, –format=FORMAT
asn1, ssh or raw (only for
asn1 format is the default, as it is the format
ssh format is used in the SSH protocol and by the ssh-agent.
SEE ALSO
sshpk-sign(1)
BUGS
Report bugs at Github https://github.com/arekinath/node-sshpk/issues
