cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Key based authentication

manigram
Active Participant
0 Kudos

Hi All,

I have to do key based aunthentication in SFTP adapter . i dont want to do any encryption and description, only i need key based aunthentication.

1- > i want to create private and public key in SAP PO.

2--> i should upload their public key in to PI NWA.

can you please suggest me how to do the above steps.

Gr,

Mani

Accepted Solutions (0)

Answers (2)

Answers (2)

manigram
Active Participant
0 Kudos

Hi Manoj,

Thanks for you immediate response.

In the key store i have created private key and exported as .p12 format.

Further what i have to do, can you please explain me.

Gr,

Mani

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Mani,

In the case of SFTP key based auth :

  • Sever should have the public key, which will be linked to the user id in the known_host file under .ssh folder
  • The client should have the private key

So in the case of PI irrespective of inbound/outbound it acts as a client, hence PI need to have the private key and SFTP server needs to have a public key.

There are 2 ways to generate SSH Keys :

  • Use PuttyKeyGen tool to generate SSH key pair, and provide the public key to SFTP guys and using OpenSSL commands convert the PuttyGetGen Private key to NWA format private key.
  • Create a Private/PublicKey pair in NWA , convert the Public key to SSH format public key and provide the same to a third party.

Use this wiki for reference.

Br,

Manoj