Backup and restore Ed25519 SSH keys with seed words
Backup and restore SSH private keys using memorizable seed phrases.
…You can download a binary or package from the releases page.
Or just install it with go:
go install github.com/charmbracelet/melt/cmd/melt@latestgit clone https://github.com/charmbracelet/melt.git
cd melt
go build ./cmd/melt/The CLI usage looks like the following:
# Generate a seed phrase from an SSH key
melt ~/.ssh/id_ed25519
# Generate a seed phrase from a SSH key from standard input
cat ~/.ssh/id_ed25519 | melt
# Rebuild the key from the seed phrase
melt restore ./my-key --seed "seed phrase"
# Rebuild the key and print it to standard output
cat words | melt restore -You can also pipe to and from a file:
…shell
melt restore ./my-key --seed "witness shoe deputy celery debate myth
title sign dish bone powder velvet reveal midnight blast mobile
valid cycle announce valid item interest cinnamon cake"
Restoring key to ./my-key and ./my-key.pub...
Enter new passphrase (empty for no passphrase):
Enter same passphrase again:
Successfully restored keys to ./my-key and ./my-key.pub
You can verify that the memo is not there:
```shell
cat my-key.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKThPEoe20Wi5zAfyI+gTrTMnODbRtYtQRUZYIvfV19CRun this command on the restored key:
ssh-keygen -c -C [email protected] -f ./my-key
Old comment:
Comment '[email protected]' appliedAnd check to see your memo is set:
cat my-key.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKThPEoe20Wi5zAfyI+gTrTMnODbRtYtQRUZYIvfV19C [email protected]See contributing.
We’d love to hear your thoughts on this project. Feel free to drop us a note!
Part of Charm.
Charm热爱开源 • Charm loves open source
No open issues yet, or sync has not completed.