Bug 1863 - fingerprint for key for stdin
Summary: fingerprint for key for stdin
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh-keygen (show other bugs)
Version: 5.8p1
Hardware: All All
: P2 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_7_2
  Show dependency treegraph
 
Reported: 2011-02-20 05:36 AEDT by Marc 'Zugschlus' Haber
Modified: 2016-08-02 10:42 AEST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc 'Zugschlus' Haber 2011-02-20 05:36:28 AEDT
Hi,

please allow ssh-keygen -l to read the key to be fingerprinted from standard input, so that it can be used in a pipe, like (simplified):

grep 'matching rsa key found: ' syslog | ssh-keygen -l -f -

Greetings
Marc
Comment 1 Damien Miller 2016-02-05 13:48:55 AEDT
implemented in:

commit c56a255162c2166884539c0a1f7511575325b477
Author: djm@openbsd.org <djm@openbsd.org>
Date:   Mon Nov 16 22:53:07 2015 +0000

    upstream commit
    
    Allow fingerprinting from standard input "ssh-keygen -lf
     -"
    
    Support fingerprinting multiple plain keys in a file and authorized_keys
    files too (bz#1319)
    
    ok markus@
    
    Upstream-ID: 903f8b4502929d6ccf53509e4e07eae084574b77
Comment 2 Damien Miller 2016-08-02 10:42:47 AEST
Close all resolved bugs after 7.3p1 release