Skip to main content

SSH module

Description

The "ssh" module enables communication with an SSH/SFTP server. At the moment, any files can be uploaded to an SFTP server.

Interfaces and protocols used​

  • SSH/SFTP

JSON configuration​

The following section describes the entire JSON configuration of the module and explains the individual parameters.

Example configuration (authentication with user name and password)​

{
"module": "SSH",
"factory": "ssh",
"config":{
"address": "some.ssh.host.name",
"fingerprint": "aa:bb:cc:dd:...",
"port":23,
"username": "someSSHUser",
"password": "somePassword"
}
}

Example configuration (authentication with private key)​

{
"module": "SSH",
"factory": "ssh",
"config":{
"address": "some.ssh.host.name",
"fingerprint": "aa:bb:cc:dd:...",
"port":23,
"username": "someSSHUser",
"privateKey": "somePrivateKey",
"passphrase": "somePrivateKeyPassphrase"
}
}

Global module parameters​

Parameter NameRequiredData TypeMeaningful Value RangeDefaultDescription
addressYESSTRINGvalid network hostaddress of the SSH/SFTP host
fingerprintNoSTRINGFingerprint of the SSH/SFTP host for validation (comparable to known-hosts file)
portNoINT1 - 6553523Port of the SSH/SFTP server
usernameYESSTRINGusername

Parameters for authentication with password​

Parameter NameRequiredData TypeMeaningful Value RangeDefaultDescription
passwordYESSTRINGSSH/SFTP server password

Parameters for authentication with private key​

Parameter nameRequiredData typeMeaningful value rangeDefaultDescription
privateKeyNoSTRING"~/.ssh/id_rsa"File name of the private key, either as an absolute path or relative to the user's home directory
passphrasedepending on the keySTRINGPassphrase of the private key

Call interface "sendFile"​

Opt.ParameterData typeValue rangeMeaning
srcSTRINGPath to source file
dstSTRINGPath to destination file

Module information​

InformationValue
AuthorsoptiMEAS GmbH
since smartCORE2.8
Module typeN/A
DependenciesNONE