Skip to content

Ssh

Node: ssh · Full type: n8n-nodes-base.ssh · Version: 1

Credentials

sshPassword (alias: @ssh) / sshPrivateKey (alias: @ssh)

CREDENTIAL @ssh = sshPassword "My Ssh"

Operations

Resource: command

execute

Parameter Type Default Details
command string ""
cwd string "/" required

Resource: file

download

Parameter Type Default Details
path string "" required
binaryPropertyName string "data" required
options collection {} keys: fileName

upload

Parameter Type Default Details
binaryPropertyName string "data" required
path string "" required
options collection {} keys: fileName

Common Parameters

Parameter Type Default Details
authentication options "password" password, privateKey

Parameter Details

options children:

Parameter Type Default Details
fileName string ""

Example

NODE "ssh" @ssh AS "Ssh" {
  resource: "command",
  operation: "execute",
  cwd: {{ $json.cwd }},
  binaryPropertyName: {{ $json.binaryPropertyName }},
  path: {{ $json.path }}
}