1

I run

sftp -i privatekeyfile sftp_user@MY_ENDPOINT

and am asked for the password for my endpoint

sftp_user@MY_ENDPOINT's password: 

What password am I supposed to supply here ?

Others have mentioned using my ssh password but I am denied access with ""

I generated my key file with ssh-keygen -P "" keyname

For context, I want to setup an ftp server with access to S3 in order to share data with external customers.

1

There is no password for the user. The service is using your key to authenticate.

You need to make sure the role you are using has the trust relationship to transfer.amazonaws.com. It should look like:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Principal": {
        "Service": [
          "transfer.amazonaws.com"
        ]
      },
      "Action": "sts:AssumeRole"
    }
  ]
}
| improve this answer | |
  • Do you mean there is no passeord to enter at the password prompt on the terminal and that I should just press enter? – user11020868 Mar 23 '19 at 4:31
  • You will not get any password prompt if you set correctly the role associated with your sftp (and your key is not protected with a password) – Algeriassic Mar 24 '19 at 3:38
  • Ok, thank you, confirmed that adding transfer.amazonaws.com trust relationship resolves my issue – user11020868 Mar 25 '19 at 5:55
  • Kindly mark the answer – Algeriassic Mar 26 '19 at 3:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.