Global

Methods

connect(server, done)

opens ssh connection
Parameters:
Name Type Description
server ServerCredentials
done (err, ssh2.Client conn)
Source:

returnOrThrow(then, err)

Parameters:
Name Type Description
then
err
Source:

sendSigInt(cmd, stream)

Parameters:
Name Type Description
cmd String
stream Stream
Source:

sudoChallenge(stream, pwd, then)

sudo challenge completion over ssh If the login success, hasLogin is true
Parameters:
Name Type Description
stream Stream
pwd string
then callback(bool hasLogin)
Source:

sudoExec(conn, server, cmd, done)

Execute a command and returns asap
Parameters:
Name Type Description
conn ssh2.Client
server ServerCredentials
cmd String
done callback(err, ssh2._Channel_ stream)
Source: