Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ericselin/ed25519-openssh
Small command-line tool to convert golang ed25519 keys to openssh format
https://github.com/ericselin/ed25519-openssh
Last synced: 15 days ago
JSON representation
Small command-line tool to convert golang ed25519 keys to openssh format
- Host: GitHub
- URL: https://github.com/ericselin/ed25519-openssh
- Owner: ericselin
- Created: 2023-02-22T08:57:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T10:53:06.000Z (almost 2 years ago)
- Last Synced: 2024-11-28T22:30:06.000Z (2 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go ed25519 to OpenSSH format converter
This little tool converts ed25519 private keys from the format used in Golang to a format that OpenSSH understands. The Go private key (input) is expected to be in PEM format.
## Installation
```
go install github.com/ericselin/ed25519-openssh
```## Usage
You can either specify a filename as an argument, or pipe in the key from another command.
Specify filename:
```
ed25519-openssh private_key_pem_file
```Pipe (e.g. from a paste)
```
wl-paste | ed25519-openssh
```The resulting key is written to stdout. What you do with it is up to you, but one possibility is to redirect the output to a file (`... > ed25519_file`).