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.

demandé il y a 5 mois336 vues
2 réponses
1
Réponse acceptée

Hello.

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

profile picture
EXPERT
répondu il y a 5 mois
profile picture
EXPERT
vérifié il y a 20 heures
profile pictureAWS
EXPERT
vérifié il y a 5 mois
0

Thanks so much. It worked for me

répondu il y a 5 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions