videosphere
    Preparing search index...

    Function testSftpConnection

    • Validates SFTP credentials by opening a connection and checking the remote directory exists. Pins the server host key on first connect; subsequent calls verify against the pinned fingerprint.

      Parameters

      • credentials: SftpCredentials

        SFTP connection parameters (plaintext; not yet encrypted).

      Returns Promise<
          | { ok: true; hostKeyFingerprint: string }
          | { ok: false; error: PlatformUploadError },
      >

      Whether the test connection succeeded with the pinned host key fingerprint, or a classified platform error on failure.