We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df7178d commit 59a2b29Copy full SHA for 59a2b29
1 file changed
src/lib/nodes/ssh.ts
@@ -147,9 +147,9 @@ Examples:
147
return;
148
}
149
150
- const sshHostname = data.ssh_hostname;
151
- const sshPort = data.ssh_port;
152
- const sshHostKeys = data.ssh_host_keys || [];
+ const sshHostname = data.hostname ?? data.ssh_hostname;
+ const sshPort = data.port ?? data.ssh_port;
+ const sshHostKeys = data.host_keys ?? data.ssh_host_keys ?? [];
153
154
let sshDestination = sshHostname;
155
if (sshUsername !== undefined) {
@@ -168,7 +168,7 @@ Examples:
168
knownHostsCommand = knownHostsCommand.concat([
169
hostKeyAlias,
170
sshHostKey.key_type,
171
- sshHostKey.base64_encoded_key,
+ sshHostKey.key ?? sshHostKey.base64_encoded_key,
172
]);
173
174
// Escape all characters for proper pass through
0 commit comments