Closed lianghwajou closed 5 years ago
@lianghwajou Please, feel free to open PR for this.
Submitted a pr https://github.com/sanketbajoria/ssh2-promise/pull/21
@lianghwajou Sorry didn't much time to review it. I will merge it, in next few days.
@lianghwajou Published new version, with your merge request. 👍
Will need to use {sock: stream} instead of {host: host} in ssh configuration in order to build a nested tunnel.
ssh2-promise@0.1.2 sshConnections.js
connect(c) {^M this.config = Object.assign(this.config, c);^M ++this.retries;^M if (this.$connectPromise != null)^M return this.$connectPromise;^M this.$connectPromise = new Promise((resolve, reject) => {^M this.emit(sshConstants_1.default.CHANNEL.SSH, sshConstants_1.default.STATUS.BEFORECONNECT);^M