# ssh-keydump *ssh-keydump* is a simple tool to inspect OpenSSH keys, written in Rust. It uses the popular [ssh-key library](https://crates.io/crates/ssh-key) for parsing. ## Installation Use `cargo` to install the file from [crates.io](https://crates.io/crates/ssh-keydump): $ cargo install ssh-keydump Alternatively, you can run the latest version from the git repository: $ cargo install --git https://github.com/Holzhaus/ssh-keydump.git ## Command Line Usage You can print the details of an OpenSSH private key file to the terminal by passing its path on the command line: $ ssh-keydump /path/to/id_rsa Algorithm: ssh-rsa Cipher: none Comment: "user@example.com" Encrypted: false KDF: None Fingerprints: SHA256: SHA256:QRkCx+4tQHl3KU8b31ONo7x0tj8Q93tztaDUySsPkG0 SHA512: SHA512:9XF8FKgYm2t88DKgHbHiD1+9bKLKYrciXrq2g8lum/wno/MR9iMeTPZdSn/QtCFzokSry0HsUV8nCLLLmyCUxg Public Key: e: 010001 n: 00B9EFC4053F3548EACDF8D6412E612BE8CA56B2882F6E25F852D7DF3EA25299CCCDE6FABD94C3A085965B1E43F9BACC9090ABD7FEB6432B9E7FDA4C567F547886B5AE87EECF4DD5AFB06ABCD1C3520689DE10EEF94991D72BE28DEA6F25373701FD1800494CCF28DDFAE4249440488473C5A88AF505CE7555128F30D8267BADC867F4F7C4D7DD10DF0CD15F5BBFAD32F8D7CE8E871A951018B6E6452C5B1A00EEA8C86C33A39690F432BD05A74F2590D0924C41D398A4E0B4383CE764072CEC2D48F123ADC6C205CE127E76C574CF96B91E9AA8174CC4AB66F67CF9732D2B1DAECAD19EDDC1832ACDF04EB7BBED0E0284F291B8755E4E05055E42B0A785F10CB1AA01FC258EFE8992988A2A5300DD8CC828323019E51FF29C19B82E217B4607941CF889F37FD1C59FC83C758B96FA9233CF36A247B211D508F18CCE37333570B95A525D160976C8D166B2FACA5A7D19C681535F8CC49AFAEF64138758D7E77A3D977264A632C30C9FC3714E3E22B62F5A1CBCD34ECFB86E50BDECEDCDCBE3135B Private Key: d: 246164723E5ED7A891AA89897160B3EDB58167273C5889F75F863B790EDBA89A290373B61A60788D0AD14347BB9A30226D1C228404F77996669FB8E607BDE8633B332E07ACEA26D05C6D560A98F3F8B18B10B72171A2A67E40B2D1D6F36A2D4A275245E411B24AE5BC0C5D97E048101A72E73A611CC4BBB26C9235D5651A37F3895BA60B0ECD835A91307A3F026F0A15246C96F89A5BE62D5FC4086ED8586B2C473C07E7C6AF542763B216641919598F65C0A3F499DE50D51257E0527310F818C2833154C32A2F00CF2C412AFD38894476C798A80F42B9D33B769628DB7FEB69BFC88DC8BF55CEC71885680AEC2B504F764B0CC5390C9655EFA05649072E8C13B76C1E53A413DFA314B1E2AF17A86831A89B419F2D781281C684DF1AB3FFBA3AA80681FDD8CB2E09A98E7643A54CE883BB20A2A4A17FBF2F69E93C1D5B55DEB932D58EA0EC24318BA21FFFBA8EB3827E4DC5D9BC461D61CD6028AEC1F584A62A63E7AECFEB2C062EA36A6A9834EDB46284762D818813B0C41768812EE6A8A7B9 iqmp: 00E4F7918A6C9A08BDA589D0FE3D0D11C6E0D4011626E1EC9BA1FB40E70C53FFE7EA7D4E2F7FF0C3D56F3611FA7C8CBD00F80A7490EA5870935FBB2E1A49459E4D8BA0A4DC91C7428EAE8069FC07FD6A1ED320AC617EB02F8D204CF758AC41F1489A598B92F35C7FCCD6DE798A50EA5B4F5D03ADEC7D46CBCADA9FCDC72EEACC034E28AABBBCF70324759FDFE20E71B05AAE31689CB05993B639E489E9BEF5F8DD4E72008D8CC6A47E3F09F49E599CC4153FF346E4349A8177A93B7E4A471FBBEA p: 00EE2C84A70A8F7ADE105492400456736E82DD2D599C8517584EB02DA19E960F2AC21A4A37EF799DFF879A0F739577C42AA4AEC6B7688C1DAF97F1B9DF97CD63AD78F38D30DA55BC0722C6D6466784C72FF95B4FF3AAD8B8690070BC13583FC92F1F5306DF11A52E9B705425CA59AA3C6192729CA4C8D0633EED63988808ECFDCAFFD4BEDFB6CB3C29882713E1AA5185A4CB7662C5CC6CA635BBCE1B23D160E5B8197E32E2CE9D31780429DF373E8B49FEDCFDA9C8FBCAF700CE71A6A228B2C26D q: 00C7DA5D8143DAD126C9582EC35204752F2D3CCD4CAC56F4628F1687FDD81D5565202AFDD15701DC909D3389C038F50B2B510CF293386BE3F87BAA39B1856A7CDED42AA5D2758AE1E39D6EB15CAB15BC3ADFE7244C565CDE72906E9A4A9B28EFD3F75FE077047BCA7CD5C243746D1DE8D822493510D9CBBE07676DFC50C40ACC6DCB17DF203F485A9BEFF669DCCD0979DCD42F8767D7E7E6304E0D58599821C483B19E9D2366253AE8F2B49E07ADED42AA1208F3441D405C39AC07E4BD3D2E4FE7 For more information on the command line interface, check the `--help` text. ## License This software is licensed under the terms of the [Mozilla Public License 2.0](https://www.mozilla.org/en-US/MPL/2.0/). Please also have a look at the [license FAQ](https://www.mozilla.org/en-US/MPL/2.0/FAQ/).