Fix: SSH key verify — namespace 'file', show full challenge, copyable Step 2
This commit is contained in:
@@ -797,7 +797,10 @@ TrustedUserCAKeys /etc/ssh/trusted_user_ca`}
|
|||||||
<div className="p-3 rounded-md bg-destructive/10 text-destructive text-sm">{verifyError}</div>
|
<div className="p-3 rounded-md bg-destructive/10 text-destructive text-sm">{verifyError}</div>
|
||||||
)}
|
)}
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label>Step 1 — Save this challenge text to a file</Label>
|
<Label>Step 1 — Save the challenge text to a file</Label>
|
||||||
|
<p className="text-xs text-muted-foreground">
|
||||||
|
Copy the <strong>entire</strong> text below (not just the hex) and save it to a file.
|
||||||
|
</p>
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<Textarea
|
<Textarea
|
||||||
readOnly
|
readOnly
|
||||||
@@ -810,18 +813,21 @@ TrustedUserCAKeys /etc/ssh/trusted_user_ca`}
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="rounded-lg bg-muted p-3 space-y-1">
|
<div className="space-y-2">
|
||||||
<p className="text-xs font-semibold flex items-center gap-1">
|
<Label className="flex items-center gap-1">
|
||||||
<Terminal className="w-3 h-3" /> Step 2 — Sign with ssh-keygen
|
<Terminal className="w-3 h-3" /> Step 2 — Sign with ssh-keygen
|
||||||
</p>
|
</Label>
|
||||||
<pre className="text-xs font-mono whitespace-pre-wrap break-all">
|
<div className="relative">
|
||||||
{`echo '<challenge_text>' > /tmp/challenge.txt
|
<Textarea
|
||||||
ssh-keygen -Y sign \\
|
readOnly
|
||||||
-f ~/.ssh/id_ed25519 \\
|
value={`echo '${challengeText}' > /tmp/challenge.txt\nssh-keygen -Y sign \\\n -f ~/.ssh/id_ed25519 \\\n -n file \\\n /tmp/challenge.txt\ncat /tmp/challenge.txt.sig | base64 -w0`}
|
||||||
-n secuird \\
|
className="font-mono text-xs pr-10"
|
||||||
/tmp/challenge.txt
|
rows={6}
|
||||||
cat /tmp/challenge.txt.sig | base64 -w0`}
|
/>
|
||||||
</pre>
|
<div className="absolute top-2 right-2">
|
||||||
|
<CopyButton text={`echo '${challengeText}' > /tmp/challenge.txt\nssh-keygen -Y sign \\\n -f ~/.ssh/id_ed25519 \\\n -n file \\\n /tmp/challenge.txt\ncat /tmp/challenge.txt.sig | base64 -w0`} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user