LogoLogo
About
  • Home
  • Guides
  • BDK
  • REST API
  • SFTP
    • Overview
    • Downloading Files using SFTP
    • Uploading Files using SFTP
Powered by GitBook
On this page
  • Setting Up SFTP Connection
  • Connecting to an SFTP Server
  • Required Credentials
  • Step-by-Step Connection Process

Was this helpful?

Export as PDF
  1. SFTP

Overview

Automating with Secure File Transfer Protocol (SFTP) in Kognitos.

Setting Up SFTP Connection

Connecting to an SFTP Server

To interact with an SFTP server using Kognitos, establishing a secure connection to your SFTP instance is the first critical step. This section outlines the credentials required for this connection and provides a detailed, step-by-step guide to connect successfully.

Required Credentials

To connect to an SFTP server, you will need the following credentials:

  1. SFTP Hostname: The hostname or IP address of your SFTP server.

  2. SFTP Port: The port number for your SFTP server (default is 22).

  3. SFTP Username: The username associated with your SFTP account.

  4. SFTP Password: The password for your SFTP account.

Step-by-Step Connection Process

  1. Gather Credentials: Ensure you have all the required credentials: SFTP hostname, port, username, and password.

  2. Connect to SFTP Server: To initiate a connection to the SFTP server, use the following Kognitos command:

    connect to sftp with
        the sftp hostname is "<SFTP_Hostname>"
        the sftp port is <SFTP_Port>
        the sftp username is "<Your_Username>"
        the sftp password is "<Your_Password>"

    Replace <SFTP_Hostname>, <SFTP_Port>, <Your_Username>, and <Your_Password> with your actual SFTP hostname, port, username, and password, respectively.

    connect to sftp with
        the sftp hostname is "example.com"
        the sftp port is 22
        the sftp username is "user"
        the sftp password is "password"
  3. Verify Connection: After executing the above command, Kognitos will attempt to establish a connection to the SFTP server using the provided credentials. If the connection is successful, you can proceed with further operations like uploading or downloading files. If the connection fails, verify your credentials and ensure that your SFTP hostname, port, username, and password are correct.

  4. Connection Established: Once the connection is successfully established, you are ready to perform various operations on the SFTP server. You can now upload files, download files, and manage files on the server.

You need only perform the connection one time. Once the connection is established, you can write SFTP procedures in Kognitos.

Last updated 1 month ago

Was this helpful?