sequest / 0.9.0 last updated 6 months ago created on Jun 9th 2014
Install
npm install --save sequest
Clone
git clone git@github.com:mikeal/sequest.git
maintainers
versions
8 total
| 0.9.0 | 6 months ago | mikeal |
| 0.8.0 | a year ago | mikeal |
| 0.7.0 | 2 years ago | mikeal |
| 0.6.0 | 2 years ago | mikeal |
| 0.5.0 | 2 years ago | mikeal |
| 0.4.0 | 2 years ago | mikeal |
| 0.2.0 | 2 years ago | mikeal |
| 0.1.0 | 2 years ago | mikeal |
readme
Sequest -- Simple ssh client
sequest(host[, command[, opts]])
By default sequest will use your local ssh-agent to authenticate to remote hosts which should make it unnecessary to enter username, password or privateKey information.
Continuous mode
Each command will complete before the next is sent to the server. If any command returns a non-zero exit code it will emit an error which effectively ends the stream and the processing of subsequent commands.
Connection Options
Accepts all ssh2 connection options, most of which are unnecessary as you can define user and host information in the host string and because ssh-agent authentication is used when not supplying a privateKey.
The most common are listed below.
username - < string > - Username for authentication. Default: (none)
password - < string > - Password for password-based user authentication. Default: (none)
agent - < string > - Path to ssh-agent's UNIX socket for ssh-agent-based user authentication.
sequestdefaults this toprocess.env.SSH_AUTH_SOCK.privateKey - < mixed > - Buffer or string that contains a private key for key-based user authentication (OpenSSH format). Default: (none)
passphrase - < string > - For an encrypted private key, this is the passphrase used to decrypt it. Default: (none)
publicKey - < mixed > - Optional Buffer or string that contains a public key for key-based user authentication (OpenSSH format). If
publicKeyis not set, it will be generated from theprivateKey. Default: (none)
Custom options
- proxy - < string > - Host to proxy connection through. Default: (none) :: (e.g
root@72.9.543.901)
Using options
.connect(host[, opts])
Convenience API for making several calls to the same host.
.get(host, path[, opts])
get remote file
Also works with .connect()
Default options, as defined by ssh2, are as follows:
.put(host, path[, opts])
write remote file
Also works with .connect()
Default options, as defined by ssh2, are as follows:
Credits
This would not be possible without Brian White's amazing ssh2 module.