De Wiki inetshell
Saltar a: navegación, buscar
(Página creada con «https://serverfault.com/questions/888281/what-is-the-sha256-that-comes-on-the-sshd-entry-in-auth-log <pre> cat .ssh/id_rsa.pub | awk '{ print $2 }' | # Only the act...»)
 
(Sin diferencias)

Revisión actual del 03:10 13 ago 2019

https://serverfault.com/questions/888281/what-is-the-sha256-that-comes-on-the-sshd-entry-in-auth-log

cat .ssh/id_rsa.pub    |
    awk '{ print $2 }' | # Only the actual key data without prefix or comments
    base64 -d          | # decode as base64
    sha256sum          | # SHA256 hash (returns hex)
    awk '{ print $1 }' | # only the hex data
    xxd -r -p          | # hex to bytes
    base64               # encode as base64