Comments (5)
This is not a feature that I personally need, so really you need to let me know what behavior would work best for you.
from keychain.
I tried several approaches to locating the pub file which were easy in bash, but which I wasn't too sure how to convert to "lowest common denominator" Borne shell syntax. Eventually I realized it might be simpler and more robust to add the full filename to the list of fingerprints, while suppressing the warning about "can't find pub file".
I noticed existing code that used basenames, but that seemed more subject to error if keys from different directories shared the same basename. I did NOT attempt to change the existing basename-centric code. Perhaps that should be done too, if this approach seems suitable for inclusion in the repo.
So here are diffs for your consideration:
$ diff -c keychain ORIG/
*** keychain 2010-08-19 15:58:34.062500000 -0400
--- ORIG//keychain 2006-11-08 23:58:06.001000000 -0500
*** 926,938 ****
# md5 1024 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 /home/barney/.ssh/id_dsa(DSA)
# 2048 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 /home/barney/.ssh/id_rsa.pub
echo "$ef_line" | cut -f3 -d' '
-
echo "$ef_line" | cut -f4 -d' ' # include filename as backoff ;; _\ [0-9a-fA-F][0-9a-fA-F]:[0-9a-fA-F][0-9a-fA-F]:_) # The more consistent OpenSSH format, we hope # 1024 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 /home/barney/.ssh/id_dsa (DSA) echo "$ef_line" | cut -f2 -d' '
-
--- 926,936 ----
echo "$ef_line" | cut -f3 -d' ' # include filename as backoff ;; _) # Fall back to filename. Note that commercial ssh is handled
_************
*** 1012,1020 ****
sf_filename="$1"
if $openssh || $sunssh; then
if [ ! -f "$sf_filename.pub" ]; then
! #warn "$sf_filename.pub missing; can't tell if $sf_filename is loaded"
! echo $sf_filename
! return 0
fi
sf_fing=ssh-keygen -l -f "$sf_filename.pub"
|| return 1
echo "$sf_fing" | extract_fingerprints
--- 1010,1017 ----
sf_filename="$1"
if $openssh || $sunssh; then
if [ ! -f "$sf_filename.pub" ]; then
! warn "$sf_filename.pub missing; can't tell if $sf_filename is loaded"
! return 1
fi
sf_fing=ssh-keygen -l -f "$sf_filename.pub"
|| return 1
echo "$sf_fing" | extract_fingerprints
from keychain.
OOPS, clearly I screwed the editor pooch. Funny, I can't seem to see any description of the syntax (surely its right in front of me). So I stuck the diffs in pastebin: http://pastebin.com/jy8cCY3G
from keychain.
This issue has been imported into the Funtoo Linux bug tracker! :) Follow the action here: https://bugs.funtoo.org/browse/FL-1998
from keychain.
This issue has been resolved in the Funtoo Linux bug tracker. Closing on GitHub.
from keychain.
Related Issues (20)
- "Too few arguments" when used with --systemd HOT 3
- Issue with KSSHAskPass HOT 2
- Blank screen after login HOT 4
- Add support for aliased paths, particularly for Win32-OpenSSH. HOT 2
- support looking up ssh-agent started by docker for mac HOT 1
- Hide keychain version on startup (except when called with --version flag) HOT 3
- Is there anyone further developing this software? HOT 3
- How can we get this project active again? HOT 3
- Mismatch of maintainer declaration manpage vs funtoo wiki HOT 1
- Suggest alternatives (use gpg-agent systemd unit) HOT 2
- Issue with fresh debian 11 install - gpg HOT 2
- Listing loaded SSH keys does not work HOT 2
- Ignore specific key
- --confhost option is broken
- Are you guys going to every fully support the fish shell? HOT 1
- support deleting keys
- Project Still Alive? Potential for a fork? HOT 2
- installing keychain on opensuse results in black screen after boot HOT 1
- Keychain on Wayland
- exporting session key before graphical session with graphical-session-pre.target
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keychain.