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.

已提問 5 個月前檢視次數 333 次
2 個答案
0
已接受的答案

Hello.

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

profile picture
專家
已回答 5 個月前
profile pictureAWS
專家
已審閱 5 個月前
0

Thanks so much. It worked for me

已回答 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南