The best way to control Claude Code, Codex and more from any computer or phone
fix(ssh): ask for a password or verification code, not only a password (#20272)
Co-authored-by: hiimchinh <chinhhm@proton.me> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
Victor Vogel committed
Oct 19, 2026 at 23:17 UTC
cc93dc10d2354b190d45ca9a92aaaca7bb002a86
2 files changed
+11
-9
apps/web/src/components/desktop/SshPasswordPromptDialog.tsx
+10
-8
@@ -25,9 +25,9 @@ function formatRemainingSeconds(seconds: number): string {
25
}
26
27
function getPromptErrorMessage(error: unknown): string {
28
- const message = error instanceof Error ? error.message : "SSH password prompt failed.";
28
+ const message = error instanceof Error ? error.message : "SSH verification prompt failed.";
29
return message.includes("expired") || message.includes("no longer pending")
30
- ? "This SSH password prompt expired. Try connecting again."
30
+ ? "This SSH verification prompt expired. Try connecting again."
31
: message;
32
}
33
@@ -104,7 +104,7 @@ function ActiveSshPasswordPrompt({
104
const remainingLabel =
105
remainingSeconds === null ? null : formatRemainingSeconds(remainingSeconds);
106
const visibleResponseError = isExpired
107
- ? "This SSH password prompt expired. Try connecting again."
107
+ ? "This SSH verification prompt expired. Try connecting again."
108
: responseError;
109
110
const respond = async (nextPassword: string | null) => {
@@ -114,7 +114,7 @@ function ActiveSshPasswordPrompt({
114
115
const requestId = request.requestId;
116
if (nextPassword !== null && isExpired) {
117
- setResponseError("This SSH password prompt expired. Try connecting again.");
117
+ setResponseError("This SSH verification prompt expired. Try connecting again.");
118
return;
119
}
120
@@ -158,10 +158,11 @@ function ActiveSshPasswordPrompt({
158
>
159
<DialogPopup className="max-w-md" showCloseButton={false}>
160
<DialogHeader>
161
- <DialogTitle>SSH Password Required</DialogTitle>
161
+ <DialogTitle>SSH verification required</DialogTitle>
162
<DialogDescription>
163
- T3 needs your SSH password to connect to <code>{target}</code>. The password is passed
164
- to the local SSH process for this connection attempt and is not saved by T3 Code.
163
+ Enter the password or verification code required by <code>{target}</code>. T3 Code
164
+ passes your response to the local SSH process and keeps it in memory to reuse for this
165
+ host. T3 Code does not write it to disk.
166
</DialogDescription>
167
</DialogHeader>
168
<DialogPanel scrollFade={false}>
@@ -202,7 +203,8 @@ function ActiveSshPasswordPrompt({
203
<p className="text-sm text-destructive">{visibleResponseError}</p>
204
) : (
205
<p className="text-sm text-muted-foreground">
205
- Use SSH keys to avoid repeated password prompts on new SSH sessions.
206
+ SSH keys may replace a password, but your server can still require a verification
207
+ code.
208
</p>
209
)}
210
</form>
packages/ssh/src/tunnel.ts
+1
-1
@@ -1429,7 +1429,7 @@ const makeSshEnvironmentManager = Effect.fn("ssh/tunnel.SshEnvironmentManager.ma
1429
attempt,
1430
destination: target.alias.trim() || target.hostname.trim(),
1431
username: target.username,
1432
- prompt: `Enter the SSH password for ${hostSpec}.`,
1432
+ prompt: `Enter the SSH password or verification code for ${hostSpec}.`,
1433
});
1434
if (password === null) {
1435
yield* Effect.logWarning("ssh.auth.passwordPrompt.cancelled", {