Skip to content

Commit

Permalink
fix: using resolvePath for ssh key path
Browse files Browse the repository at this point in the history
  • Loading branch information
ssmirr committed Jan 29, 2020
1 parent 355ebcb commit 9d45e18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/harness/ssh.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const fs = require('fs-extra');
const { Client } = require('ssh2');
const chalk = require('chalk');
const Utils = require('../utils/utils');

class SSHConnector {
constructor(userHost, private_key) {
Expand Down Expand Up @@ -113,7 +114,7 @@ class SSHConnector {
host: sshConfig.hostname,
port: sshConfig.port,
username: sshConfig.user,
privateKey: fs.readFileSync(sshConfig.private_key),
privateKey: fs.readFileSync(Utils.resolvePath(sshConfig.private_key)),
readyTimeout: timeout,
});
});
Expand Down

0 comments on commit 9d45e18

Please sign in to comment.