Skip to content

Commit

Permalink
update ssh parameters when sshing over proxy
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Ryan Cooke <[email protected]>
  • Loading branch information
rcooke-warwick committed Jul 7, 2023
1 parent 0f1e192 commit b537e27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/lib/common/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ module.exports = class Worker {
};
} else {
config = {
host: 'ssh.balena-devices.com',
port: '22',
host: this.sshConfig.host,
port: this.sshConfig.port,
username: this.username,
};
command = `host ${target} ${command}`;
Expand Down
2 changes: 1 addition & 1 deletion core/lib/components/balena/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module.exports = class BalenaSDK {
{
host: this.sshConfig.host,
username: await this.balena.auth.whoami(),
port: this.sshConfig.sshPort,
port: this.sshConfig.port,
},
);

Expand Down

0 comments on commit b537e27

Please sign in to comment.