Function createSftpMockServer

  • Call this function to create a new mock server By default the server will listen on 127.0.0.1:9393

    const mockServer = await createSftpMockServer({
    port: "9999",
    hostname: "127.0.0.1",
    debug: (msg: string) => logger.debug(msg),
    users: {
    alice: {
    password: "password",
    publicKey: clientPublicKey
    }
    }
    })

    Returns

    a reference to the mock server

    Parameters

    • Optional config: MockServerConfig

      used to override the port and hostname that the server will listen on.

    Returns Promise<Server>

Generated using TypeDoc