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
질문됨 2달 전252회 조회
1개 답변
2
수락된 답변

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
전문가
답변함 2달 전
profile picture
전문가
검토됨 2달 전
profile picture
전문가
검토됨 2달 전
profile picture
전문가
Steve_M
검토됨 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠