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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠