From a2ce49fa7c0d23f4fcd74b412095459c53a8df2f Mon Sep 17 00:00:00 2001 From: Yik Teng Hie Date: Fri, 16 Jul 2021 13:14:22 +0800 Subject: [PATCH] aws pem file permission --- alibaba/database.md | 9 +++++++++ aws/README.md | 32 +++++++++++++++++++++++++++++++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 alibaba/database.md diff --git a/alibaba/database.md b/alibaba/database.md new file mode 100644 index 0000000..4bf34b5 --- /dev/null +++ b/alibaba/database.md @@ -0,0 +1,9 @@ +# Alibaba Cloud Academy: Database + +* AsparaDB Disk size max + * 2TB : local disc + * 32TB : Cloud disc (ESSD) +* Migration : Data Transmission Service (DTS) +* Data Lake Analysis (DLA) +* Elastic Compute Service (ECS) + diff --git a/aws/README.md b/aws/README.md index 88b0c7c..602aa99 100644 --- a/aws/README.md +++ b/aws/README.md @@ -123,4 +123,34 @@ $ aws ec2 describe-instances help -* ss \ No newline at end of file +* PEM (Windows) file permission change + + ```sh + # display file permission + $ icacls <> + + # Remove the permissions inheritance + $ icacls <> /inheritance:r /T + # Grant read permission to the current user + $ icacls <> /grant <>:R + + # updated permission display + PS C:\dev\doc\ec2> icacls .\RPD-API.pem + .\RPD-API.pem RAZER\tenghie.yik:(R) + ### + + # ssh to aws ec2 using update pem file permission + $ ssh -i "netyth-ec2-test.pem" ubuntu@ec2-54-169-180-189.ap-southeast-1.compute.amazonaws.com + ``` + +* PEM (ubuntu) file permission change + + ```sh + # change file permission + $ chmod 400 <> + + # ssh to aws ec2 + $ ssh -i "netyth-ec2-test.pem" ubuntu@ec2-54-169-180-189.ap-southeast-1.compute.amazonaws.com + ``` + + \ No newline at end of file