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ヶ月前391ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ