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); }} />