Giter Site home page Giter Site logo

tinyssh-keyconvert's Introduction

tinyssh-keyconvert

Convert OpenSSH ed25519 / ecdsa-nistp256 secret keys to binary format for TinySSH.

Note: ecdsa support is incomplete!

SYNOPSIS

Specify the path to your private key as a positional argument and the script will read, parse, convert and write the TinySSH keys to the default location in /etc/tinyssh/sshkeydir.

tinyssh-keyconvert /etc/ssh/ssh_host_ed25519_key

USAGE

Various flags to control the script execution are available:

flag description
--help display usage help
--verbose be more verbose, enable tracebacks
--json print a JSON representation of the parsed key
--dir DIR specify output directory DIR for the converted keys
--force force overwriting existing files
--dry-run do not write converted keys, only parse

A complete and up-to-date usage note can be obtained by running tinyssh-keyconvert --help.

The converted keys are named ed25519.pk/.ed25519.sk and nistp256ecdsa.pk/.nistp256ecdsa.sk respectively.

My understanding of the OpenSSH key format is documented in format.md.

Usage with ECDSA-SHA2-NISTP256

This keytype is not fully supported yet! Right now it simply writes the public and secret parts to files without parsing or unwrapping the keys any further. tinysshd-printkeys does not complain but the hostkey fingerprints differ!

INSTALLATION

Use pip to install this package directly from GitHub:

pip install git+https://github.com/ansemjo/tinyssh-keyconvert

Or install a tagged release from the Releases page:

pip install https://github.com/ansemjo/tinyssh-keyconvert/archive/v0.3.0.zip

LICENSE

Copyright (c) 2019 Anton Semjonov, licensed under the GNU General Public License 3.0

tinyssh-keyconvert's People

Contributors

ansemjo avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.