Skip to content

Latest commit

History

History
40 lines (32 loc) 路 1.07 KB

scp.md

File metadata and controls

40 lines (32 loc) 路 1.07 KB

Secure copy

Setup

In your settings.json file, you'll need to add the following configuration object to the actions property:

  "actions": {
    "scp": {
      "user": "foo",
      "password": "bar",
      "hostname": "example:5050",
      "target": "/directory/or/file"
    }
  }

Usage

POST /api/v1/actions/scp

curl -X POST -H "Content-Type: application/json" -d '{
	"source": "/source/file/or/directory"
	"user": "foo",
	"password": "bar",
	"hostname": "example:port",
	"target": "/target/directory/or/file"
}' "http://localhost:6060/api/v1/actions/scp"

Options

name type required description
source string path to the source file or directory to copy
user string if not in settings.json user name to connect to the host
password string if not in settings.json password to connect to the host
hostname string if not in settings.json host to connect to. you can append the port
target string if not in settings.json target directory or target file for the copy