- Book mode https://hackmd.io/@ncnu-opensource/book # AWS - Ubuntu Server 18.04 LTS (HVM), SSD Volume Type - 一直 next 因為我們沒有錢 QQ - Step6: - Select an existing security group -  - Step7: - 確保你知道key下載在哪兒 -  - 第二台開始可以選已經存在的鑰匙 - 在terminal中 ```shell= chmod 400 : 改 key 的權限(確定你是) #ex: chmod 400 ./1091-LSA-midterm-exam.pem ``` ref: https://docs.aws.amazon.com/zh_tw/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html#troubleshoot-unprotected-key - 連線 ```shell= ssh -i !$ ubuntu@<ip> #ex: ssh -i !$ ubuntu@3.91.67.108 ``` - 如果失敗可以嘗試替換掉`!$`改成下面這個指令 - 記得要切換到那個路徑!!! ```shell= ssh -i <token> ubuntu@<ip> #ex: ssh -i 1091-lsa.pem ubuntu@3.91.67.108 ``` - 如果還是失敗記得到 AWS 修改安全規則,再重新嘗試看看 instance -> click your instance id -> click connect -> ssh client -> copy example to your terminal #### 解決timeout 的問題 先點 Security Groups 右上角有 Actions 點他選 Edit inbound rules 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up