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
demandé il y a 6 mois390 vues
2 réponses
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
EXPERT
répondu il y a 6 mois
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
EXPERT
répondu il y a 6 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