Transfering a file from local machine to EC2 instance

0

I am running an Ubuntu ec2 instance using aws and I am trying to import a file from my local machine into it, but I created it without a key pair. How do I transfer the file?

Shanky
已提问 6 个月前390 查看次数
2 回答
1
  1. What I have done in the past is upload the file to a S3 bucket.
  2. Ensure the IAM role on the EC2 has access to the bucket
  3. Use AWS S3 cli to copy the file locally to the EC2
profile picture
专家
已回答 6 个月前
0

Hello.

For Ubuntu, I think it is possible to use Systems Manager Session Manager.
How about connecting to EC2 with Session Manager and setting a private key for SCP?
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-prerequisites.html

profile picture
专家
已回答 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则