data source sftp add
The data source sftp add command creates a connection between Spectrum Technology Platform and an SFTP server.
Usage
data source sftp add --n ConnectionName --h Host --o Port --s strictHostCheck --u Username --a key-based authentication --k privateKeyFile --e passphrase --f knownHostFileRequired | Argument | Description |
---|---|---|
Yes | --n ConnectionName | Specifies the name for the connection. The name can be anything you choose. |
Yes | --h Host | Specifies the host name or IP address of the SFTP server. |
No | --o Port | Specifies the network port to use for communication with the SFTP server. Default is 22. |
No | --s strictHostCheck | Specifies if you want Strict Host Key Checking enabled. Default is "false" |
No | --u Username | The user name to use to connect to the SFTP server, if required. |
No | --a key-based authentication | Specifies if authentication is a Password or is Key-Based. Default is Password. |
No | --k privateKeyFile | Specifies the private key file path |
No | --e passphrase | Specifies the Passphrase set with private key generation. |
No | --f knownHostFile | Specifies location of the file that maintains known hosts details. |
No | --p Password | The password to use to connect to the SFTP server, if required. |
Example
This example creates a connection to the SFTP server named MySFTPServer with a key-based authentication.
data source sftp add --n NorthernRegionCustomers --h MySFTPServer --o 22 --u ExampleUserName --a Key-Based --k ExampleKeyFile --e ExamplePassphraseExample 2:
This example creates a connection to the SFTP server named MySFTPServer when Authentication type is Password.
data source sftp add --n NorthernRegionCustomers --h MySFTPServer --o 22 --u ExampleUserName --a Password --p Example123