@runnerty/executor-scp
v3.0.4
Published
Runnerty module: scp executor
Downloads
11
Readme
SCP executor for Runnerty:
Requires sshpass tool to be installed in the SO.
By default, the executor use the port 22
, it is possible to indicate a different port with the property "remotePort"
It is possible to use "remotePassword"
instead off "identityFile"
Installation:
Through NPM
npm i @runnerty/executor-scp
You can also add modules to your project with runnerty-cli
npx runnerty-cli add @runnerty/executor-scp
This command installs the module in your project, adds example configuration in your config.json
and creates an example plan of use.
If you have installed runnerty-cli globally you can include the module with this command:
rty add @runnerty/executor-scp
Configuration sample:
Add in config.json:
{
"id": "scp_default",
"type": "@runnerty-executor-scp"
}
Plan sample:
Add in plan.json:
{
"id": "scp_default",
"identityFile": "mykey.pem",
"localFile": "originfile.txt",
"remoteFilePath": "/var/remote.txt",
"remoteHost": "my.host.com",
"remoteUser": "user"
}
{
"id": "scp_default",
"identityFile": "mykey.pem",
"localFile": "originfile.txt",
"remoteFilePath": "/var/remote.txt",
"remoteHost": "my.host.com",
"remoteUser": "user",
"remorePassword": "password"
}