Transfering a file from Local Machine to an EC2 instance without Key Pair

0

I need to transfer a file from my local machine to an EC2 instance. I don't have the key pair. I normally get into the ec2 instance via SSM Manager. Now, I need to move a file from my local machine into the EC2 instance with scp command. The scp requires key pair name to send to file to the ec2 instance, so the command fails. Is there anything else I can do to move the file without the key? Any recommendation to fix this will be highly appreciated.

asked 5 months ago307 views
2 Answers
0
Accepted Answer

Hello.

Isn't it okay to upload local files to S3 and download the S3 files from EC2?

profile picture
EXPERT
answered 5 months ago
profile pictureAWS
EXPERT
reviewed 5 months ago
0

Thanks so much. It worked for me

answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions