Srinivas Reddy
Srinivas Reddy

Reputation: 21

How to create SFTP connection in Azure Data Factory using Public SSH key

I am trying to create SFTP lined service (Using keys) in azure data factory.

Soruce (SFTP) team has shared public key. But in ADF, it is asking for private key content and pass phrase.

Please help me if this is somthing source team has to share the pass phrase and private key content or do I need to generate these keys using public key shared by source.

Regards, Srinivas.

Upvotes: 2

Views: 3826

Answers (1)

Vova Bilyachat
Vova Bilyachat

Reputation: 19514

  1. Convert your public key file into base64 string (On MAC: run in terminal base64 -i youkey.pub) then you can use that value for privateKeyContent
  2. In adf connector authenticationType change to SshPublicKey.

passPhrase - is required only if you key is protected with password.

Also i would suggest you to store those sensitive data in keyvault

Upvotes: 2

Related Questions