How to generate public key from Azure Logic App to connect to AWS S3 Bucket via SFTP-SSH connector

Vivek Komarla Bhaskar 956 Reputation points
2023-09-27T11:10:39.1166667+00:00

I need to connect to an AWS S3 bucket via SFTP, so my client needs the public key of the machine I use for the SFTP. As I'm using Azure Logic Apps -> SFTP-SSH connector to access the AWS S3 bucket, how do I generate a public key?

Screenshot 2023-09-27 at 10.33.16 am

Community Center | Not monitored
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 70,986 Reputation points Moderator
    2023-09-28T10:53:41.02+00:00

    @Vivek Komarla Bhaskar Thanks for reaching out. The question is more towards the ssh keygen rather than logic app. You can ask the expert in stackoverflow .

    Not and expert but you can try the below and in case if didn't work you can reach out to the ssh experts in stackoverflow.

    To generate a public key, you can use the ssh-keygen command on your local machine. Here are the steps to generate a public key:

    1. Open a terminal or command prompt on your local machine.
    2. Run the following command: ssh-keygen -t rsa -b 4096
    3. When prompted, enter a file name to save the key pair. The default is id_rsa.
    4. When prompted, enter a passphrase for the key pair. This is optional but recommended for security.
    5. The public key will be saved in a file with the same name as the private key, but with a .pub extension. For example, if the private key is id_rsa, the public key will be id_rsa.pub.

    Once you have generated the public key, you can provide it to your SFTP client to connect to the AWS S3 bucket.

    Please "Accept Answer" if the answer is helpful so that it can help others in the community.


  2. Takahito Iwasa 4,851 Reputation points MVP Volunteer Moderator
    2023-10-12T22:52:19.3366667+00:00

    Hi.

    I understand that you want to access your S3 bucket from Logic Apps using the SFTP protocol.

    First, unfortunately Amazon S3 does not provide a method for direct SFTP access.

    You have two options.

    1. Access an S3 bucket via HTTPS using AWS SDKs or APIs without using SFTP. A connector for Amazon S3 is provided.
      1. https://learn.microsoft.com/ja-jp/connectors/amazons3/
    2. Deploy AWS Transfer Family on AWS and create and use a managed SFTP server. You can specify any S3 bucket for Transfer Family storage.
      1. https://docs.aws.amazon.com/transfer/latest/userguide/create-server-sftp.html
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.