Smart Processes Management
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"
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
Add in config.json:
{
"id": "scp_default",
"type": "@runnerty-executor-scp"
}
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"
}