HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

melt — Backup and restore Ed25519 SSH keys using memorizable seed phrases. More information: <https://githu

Submitted by: @import:tldr-pages··
0
Viewed 0 times
backupmeltcommanded25519andsshclirestore

Problem

How to use the melt command: Backup and restore Ed25519 SSH keys using memorizable seed phrases. More information: <https://github.com/charmbracelet/melt#usage>.

Solution

melt — Backup and restore Ed25519 SSH keys using memorizable seed phrases. More information: <https://github.com/charmbracelet/melt#usage>.

Generate a seed phrase from an existing Ed25519 private key:
melt {{~/.ssh/id_ed25519}}


Generate a seed phrase from stdin:
{{cat ~/.ssh/id_ed25519}} | melt


Restore an SSH key from a seed phrase:
melt restore {{path/to/key}} --seed "{{seed_phrase}}"


Restore an SSH key from a seed phrase via stdin:
{{cat path/to/file}} | melt restore -

Code Snippets

Generate a seed phrase from an existing Ed25519 private key

melt {{~/.ssh/id_ed25519}}

Generate a seed phrase from `stdin`

{{cat ~/.ssh/id_ed25519}} | melt

Restore an SSH key from a seed phrase

melt restore {{path/to/key}} --seed "{{seed_phrase}}"

Restore an SSH key from a seed phrase via `stdin`

{{cat path/to/file}} | melt restore -

Context

tldr-pages: common/melt

Revisions (0)

No revisions yet.