Issue
I have a third party vendor that hosts an s3 bucket for me here:
s3://base/my_bucket/
Recently, the vendor put in place requirements that users need to go through a secure connection (upload public RSA to their site and have private RSA local).
My private RSA lives in ~/.ssh/vendor_creds
When I look at aws s3 cp
documentation, I do not see anything about pushing with that request the location of my local RSA I want to use.
Further, aws config
does not ask for any specific token locations.
From the vendor, I have:
- Access Key ID
- Secret Key
- An s3 url
The command that I have which was working previously was: aws s3 cp s3://base/my_bucket/ /home/my_sername/temp/AWS/ --recursive
Scratching my head a bite and would appreciate any help.
For context, the vendor said I should use cyberduck to download the data (aka: manually every day....)
Solution
For my specific use-case, I needed to do the below. Hopefully helpful to someone else in the future.
sftp -i ~/.ssh/token_rsa -r {USER}.us-east-1.amazonaws.com:{Some Additional}/{info}*
My additional info was specific url parameters provided by the vendor.
Answered By - jason m Answer Checked By - Willingham (WPSolving Volunteer)