Web lists-archives.com

Keychain 2.7.1-1 reports error caching private keys

While trying to cache my private ssh key with keychain I get the
following warning: "Can't determine fingerprint from the following
line, falling back to filename". I've left the actual line out for
privacy. It appears to be the same bug documented at
https://bbs.archlinux.org/viewtopic.php?id=194978#p1512346 several
years ago as when I added the missing lines to the
extract_fingerprints function, the warning disappeared. Below is the
full function that eliminates the warning with the new lines
highlighted between comments

cygcheck.out is attached.

extract_fingerprints() {

        while read ef_line; do

                case "$ef_line" in
                        *\ *\ [0-9a-fA-F][0-9a-fA-F]:[0-9a-fA-F][0-9a-fA-F]:*)
                                # Sun SSH spits out different things
depending on the type of
                                # key.  For example:
                                #       md5 1024
                                #       2048
                                echo "$ef_line" | cut -f3 -d' '
                        *\ [0-9a-fA-F][0-9a-fA-F]:[0-9a-fA-F][0-9a-fA-F]:*)
                                # The more consistent OpenSSH format, we hope
                                #       1024
/home/barney/.ssh/id_dsa (DSA)
                                echo "$ef_line" | cut -f2 -d' '
# Start of new lines
                        *\ SHA256:[0-9a-zA-Z\+\/=]*|*\ MD5:[0-9a-zA-Z\+\/=]*)
                                # The new OpenSSH 6.8+ format,
                                #   1024
/home/barney/.ssh/id_dsa (DSA)
                                echo "$ef_line" | cut -f2 -d' '
# End of new lines
                                # Fall back to filename.  Note that
commercial ssh is handled
                                # explicitly in ssh_l and ssh_f, so
hopefully this rule will
                                # never fire.
                                warn "Can't determine fingerprint from
the following line, falling back to filename"
                                mesg "$ef_line"
                                basename "$ef_line" | sed 's/[ (].*//'
        done | xargs

Attachment: cygcheck.out
Description: Binary data

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple