mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 02:56:02 +00:00
Update cheatsheets
This commit is contained in:
25
tldr/melt
Normal file
25
tldr/melt
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 -`
|
||||
Reference in New Issue
Block a user