From adcbd04fe9a43a3fde78e8ee70cbba41758640b9 Mon Sep 17 00:00:00 2001 From: hanruo <552455797@qq.com> Date: Fri, 22 May 2026 14:30:39 +0800 Subject: [PATCH] fix --- src/screens/SshKeyPrompt.jsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/screens/SshKeyPrompt.jsx b/src/screens/SshKeyPrompt.jsx index 6109a78..0ae401e 100644 --- a/src/screens/SshKeyPrompt.jsx +++ b/src/screens/SshKeyPrompt.jsx @@ -23,6 +23,17 @@ export default function SshKeyPrompt({ nav }) { Paste the contents of your .pub file (single line): It will be appended to ~/.ssh/authorized_keys (dedup'd). + + How to get the .pub file from another machine + 1. If you don't have one yet, generate it on that machine: + ssh-keygen -t ed25519 -C "your_email@example.com" + (press Enter at every prompt to accept defaults) + 2. Print and copy the public key: + Linux/macOS: cat ~/.ssh/id_ed25519.pub + Windows (PowerShell): type $env:USERPROFILE\.ssh\id_ed25519.pub + (fall back to id_rsa.pub if you used RSA) + 3. Copy the whole single line (starts with ssh-ed25519 / ssh-rsa) and paste below. + key › { setKey(v); if (error) setError(null); }} />