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 個月前檢視次數 249 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南