How to use the ssh2-streams.SSH2Stream.prototype function in ssh2-streams

To help you get started, we’ve selected a few ssh2-streams examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Eugeny / terminus / terminus-ssh / src / services / ssh.service.ts View on Github external
savedPassword = result.value
                        }
                        return await result.value
                    }
                    return ''
                } catch (_) {
                    return ''
                }
            })
        })
    }
}

/* eslint-disable */
const _authPassword = SSH2Stream.prototype.authPassword
SSH2Stream.prototype.authPassword = async function (username, passwordFn: any) {
    _authPassword.bind(this)(username, await passwordFn())
} as any
github Eugeny / terminus / terminus-ssh / src / services / ssh.service.ts View on Github external
if (result.remember) {
                            savedPassword = result.value
                        }
                        return await result.value
                    }
                    return ''
                } catch (_) {
                    return ''
                }
            })
        })
    }
}

/* eslint-disable */
const _authPassword = SSH2Stream.prototype.authPassword
SSH2Stream.prototype.authPassword = async function (username, passwordFn: any) {
    _authPassword.bind(this)(username, await passwordFn())
} as any

ssh2-streams

SSH2 and SFTP(v3) client/server protocol streams for node.js

MIT
Latest version published 5 years ago

Package Health Score

70 / 100
Full package analysis