SFTP Send File - 'invalid private key: [B@5bbde572'

Hello Everyone,

I am using another client’s SFTP server for demo purposes, which uses SSH key pair authentication with a private key that works in FileZilla.

I have created Third-Party Credentials in Appian using the username only and uploaded the private key along with a constant associated with it.

Here is my File Transfer Configurations CDT:

'type!{plugins.ps.appiancorp.com/.../}FT_Config'(

serverHostName: "xyz.com",

serverPort: 22,

scsExternalSystemKey: "aws-cmd",

usePerUserCredentials: false(),

privateKeyFile: tointeger(cons!MS_SFTP_USER_PRIVATE_KEY_FILE)

)

I am getting an error: invalid private key: [B@5bbde572.

I know the private key works fine because I have used it in FileZilla.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    Casting to an integer is not required for the file.  See the below for details:

    = 'type!{http://plugins.ps.appiancorp.com/suite/types/}FT_Config'(
      serverHostName: cons!FTP_HOST_NAME,
      serverPort: 22,
      scsExternalSystemKey: "ftp-user-name",
      usePerUserCredentials: false(),
      privateKeyFile: cons!FTP_PRIVATE_KEY
    )

Reply
  • 0
    Certified Associate Developer

    Casting to an integer is not required for the file.  See the below for details:

    = 'type!{http://plugins.ps.appiancorp.com/suite/types/}FT_Config'(
      serverHostName: cons!FTP_HOST_NAME,
      serverPort: 22,
      scsExternalSystemKey: "ftp-user-name",
      usePerUserCredentials: false(),
      privateKeyFile: cons!FTP_PRIVATE_KEY
    )

Children