refactior(terminal): add port to server connect

This commit is contained in:
Mauricio Siu
2024-09-29 16:24:09 -06:00
parent 7046d05f63
commit 6cc64b4454

View File

@@ -72,6 +72,8 @@ export const setupTerminalWebSocketServer = (
"StrictHostKeyChecking=no", "StrictHostKeyChecking=no",
"-i", "-i",
privateKey, privateKey,
"-p",
`${server.port}`,
`${server.username}@${server.ipAddress}`, `${server.username}@${server.ipAddress}`,
]; ];
const ptyProcess = spawn("ssh", sshCommand.slice(1), { const ptyProcess = spawn("ssh", sshCommand.slice(1), {