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 个月前251 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则