Using scp command with session manager

0

Hi everyone,

I want to completely avoid using EC2 key pairs for security reasons. But, I also want to use scp command to upload files to my EC2 instances. So, my question is do I still need SSH keys to use scp command with session manager? If the answer is yes, what are the recommended alternatives for uploading files to the instances?

Thanks in advance. :)

AKMin
posta 2 mesi fa251 visualizzazioni
1 Risposta
2
Risposta accettata

Hello.

Yes, SCP commands via Session Manager require a key pair.
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-enable-ssh-connections.html

Another workaround is to upload the file to S3 etc. and then use EC2 to copy the file from S3.

profile picture
ESPERTO
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
profile picture
ESPERTO
Steve_M
verificato 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande