fix: prompt for jump host TOTP in terminal, file manager and metrics (#1312)

This commit is contained in:
LukeGus committed 2026-09-30 13:58:26 -05:00
1 parent 09259de01c
commit 41d0c0ab85
6 files changed
+211 -8

No files matched your search

+5 -1
View File
@@ -265,7 +265,11 @@ export function createPluginSsh({ manifest, bag, audit }: Deps): PluginSsh {
const userId = userFor(chainOptions?.forHost);
const { createJumpHostChain } =
await import("../hosts/jump-host-chain.js");
const client = await createJumpHostChain(jumpHosts, userId);
const client = await createJumpHostChain(
jumpHosts,
userId,
chainOptions?.prompt as Parameters<typeof createJumpHostChain>[2],
);
const details = `jump chain of ${jumpHosts.length} hop(s)`;
if (!client) {
await audit("ssh_jump_chain", details, {