From d3d91446394d013fc4877efdd955917bda0ed24f Mon Sep 17 00:00:00 2001 From: Alexander Coffin Date: Thu, 23 Oct 2025 15:18:28 -0700 Subject: [PATCH] fix vm ssh command --- src/lib/nodes/ssh.ts | 10 +++++----- src/lib/vm/ssh.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib/nodes/ssh.ts b/src/lib/nodes/ssh.ts index 8e68e83..f5ffc2a 100644 --- a/src/lib/nodes/ssh.ts +++ b/src/lib/nodes/ssh.ts @@ -127,8 +127,8 @@ Examples: ssh_hostname: string; ssh_port: number; ssh_host_keys: { - keyType: string; - base64EncodedKey: string; + key_type: string; + base64_encoded_key: string; }[] | undefined; }; sshSpinner.succeed("SSH information fetched successfully."); @@ -157,9 +157,9 @@ Examples: let knownHostsCommand = ["/usr/bin/env", "printf", "%s %s %s\\n"]; for (const sshHostKey of sshHostKeys) { knownHostsCommand = knownHostsCommand.concat([ - sshHostname, - sshHostKey.keyType, - sshHostKey.base64EncodedKey, + `${vmId}.vms.sfcompute.dev`, + sshHostKey.key_type, + sshHostKey.base64_encoded_key, ]); } // Escape all characters for proper pass through diff --git a/src/lib/vm/ssh.ts b/src/lib/vm/ssh.ts index 154b25b..bc0fe3d 100644 --- a/src/lib/vm/ssh.ts +++ b/src/lib/vm/ssh.ts @@ -63,8 +63,8 @@ export function registerSsh(program: Command) { ssh_hostname: string; ssh_port: number; ssh_host_keys: { - keyType: string; - base64EncodedKey: string; + key_type: string; + base64_encoded_key: string; }[] | undefined; }; const sshHostname = data.ssh_hostname; @@ -86,9 +86,9 @@ export function registerSsh(program: Command) { let knownHostsCommand = ["/usr/bin/env", "printf", "%s %s %s\\n"]; for (const sshHostKey of sshHostKeys) { knownHostsCommand = knownHostsCommand.concat([ - sshHostname, - sshHostKey.keyType, - sshHostKey.base64EncodedKey, + `${vmId}.vms.sfcompute.dev`, + sshHostKey.key_type, + sshHostKey.base64_encoded_key, ]); } // Escape all characters for proper pass through