added function to display fingerprint in pubkey command

This commit is contained in:
Bryan Joshua Pedini 2024-09-05 16:31:56 +02:00
parent bea9c85c9a
commit 8d37dfd5ad

View File

@ -1,4 +1,4 @@
alias pubkey='for PUBKEY_FILE in $(ls ~/.ssh/id_*.pub); do echo "${PUBKEY_FILE} :" | sed -e "s/.*id_//;s/\.pub//"; cat "${PUBKEY_FILE}"; echo; done'
alias pubkey='for PUBKEY_FILE in $(ls ~/.ssh/id_*.pub); do echo "${PUBKEY_FILE} :" | sed -e "s/.*id_//;s/\.pub//"; cat "${PUBKEY_FILE}"; ssh-keygen -lf "${PUBKEY_FILE}" -E sha256; echo; done'
alias taglist='git tag | tr - \~ | sort -V | tr \~ -'
alias hosts='sudo nano /etc/hosts'
alias historygrep='history | grep'