MCPcopy Index your code
hub / github.com/coder/mux / shouldUseSSH2Runtime

Function shouldUseSSH2Runtime

src/node/runtime/runtimeFactory.ts:68–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68function shouldUseSSH2Runtime(): boolean {
69 // Windows always uses SSH2 (no native OpenSSH)
70 if (process.platform === "win32") {
71 return true;
72 }
73 // Other platforms: check config (defaults to OpenSSH)
74 const config = new Config();
75 return config.loadConfigOrDefault().useSSH2Transport ?? false;
76}
77
78/**
79 * Error thrown when a workspace has an incompatible runtime configuration,

Callers 1

createRuntimeFunction · 0.85

Calls 1

loadConfigOrDefaultMethod · 0.95

Tested by

no test coverage detected