Skip to content

fix: pass missing host fields to terminal WebSocket connection#15

Open
ZacharyZcR wants to merge 1 commit into
Termix-SSH:mainfrom
ZacharyZcR:fix/pass-missing-host-fields
Open

fix: pass missing host fields to terminal WebSocket connection#15
ZacharyZcR wants to merge 1 commit into
Termix-SSH:mainfrom
ZacharyZcR:fix/pass-missing-host-fields

Conversation

@ZacharyZcR
Copy link
Copy Markdown
Member

Summary

  • Fix jump host connections failing on mobile: jumpHosts was never included in the terminal connection config, so the backend had no jump server routing info.
  • Fix keyboard-interactive auth failures: forceKeyboardInteractive was missing, causing hosts that require this auth method to fail silently.
  • Fix shared credential username override: overrideCredentialUsername was not passed through, so shared credentials always used the credential's username instead of the host-specific override.

Files Changed

File Change
app/tabs/sessions/terminal/NativeWebSocketManager.ts Add jumpHosts, forceKeyboardInteractive, overrideCredentialUsername to TerminalHostConfig
app/tabs/sessions/terminal/Terminal.tsx Add fields to TerminalProps.hostConfig
app/tabs/sessions/Sessions.tsx Pass all three fields from session.host

Test plan

  • Configure a host with a jump server → connect from mobile → should succeed
  • Configure a host with forceKeyboardInteractive enabled → connect → should use keyboard-interactive auth
  • Use a shared credential with username override → connect → should use the host-level username
  • Verify normal direct connections still work
  • npx tsc --noEmit shows no new type errors

Fixes Termix-SSH/Support#422
Fixes Termix-SSH/Support#638

…Username to terminal connection

These fields were defined on SSHHost but omitted from the terminal
hostConfig passthrough. Without jumpHosts the backend cannot route
through jump servers; without forceKeyboardInteractive hosts that
require keyboard-interactive auth fail silently; without
overrideCredentialUsername shared credentials use the wrong username.

Fixes Termix-SSH/Support#422
Fixes Termix-SSH/Support#638
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant