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 knownHostFile
RequiredArgumentDescription
Yes--n ConnectionNameSpecifies the name for the connection. The name can be anything you choose.
Yes--h HostSpecifies the host name or IP address of the SFTP server.
No--o PortSpecifies the network port to use for communication with the SFTP server. Default is 22.
No--s strictHostCheckSpecifies if you want Strict Host Key Checking enabled. Default is "false"
No--u UsernameThe user name to use to connect to the SFTP server, if required.
No--a key-based authenticationSpecifies if authentication is a Password or is Key-Based. Default is Password.
No--k privateKeyFileSpecifies the private key file path
No--e passphraseSpecifies the Passphrase set with private key generation.
No--f knownHostFileSpecifies location of the file that maintains known hosts details.
No--p PasswordThe 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 ExamplePassphrase
Example 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