Bug 1863

Summary: fingerprint for key for stdin
Product: Portable OpenSSH Reporter: Marc 'Zugschlus' Haber <mh+openssh-bugzilla>
Component: ssh-keygenAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: enhancement CC: djm
Priority: P2    
Version: 5.8p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 2451    

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