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
feita há 2 meses256 visualizações
1 Resposta
2
Resposta aceita

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
ESPECIALISTA
respondido há 2 meses
profile picture
ESPECIALISTA
avaliado há 2 meses
profile picture
ESPECIALISTA
avaliado há 2 meses
profile picture
ESPECIALISTA
Steve_M
avaliado há 2 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas