質問編集履歴
2
②の実行内容をわかりやすく修正しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,12 +5,14 @@
|
|
5
5
|
① % mkdir ~/.ssh
|
6
6
|
② %mv Downloads/ダウンロードした鍵の名前.pem .ssh/
|
7
7
|
③ %cd .ssh/
|
8
|
+
④ %ls
|
9
|
+
※初めてlsコマンドを実行した際は、正しく鍵の名前.pemと表示されていましたが
|
8
|
-
|
10
|
+
⑥実行して、上手くいかず再度lsコマンドで確認したところknown_hosts known_hosts.oldと表示されてしまう。
|
9
11
|
⑤ %chmod 600 ダウンロードした鍵の名前.pem
|
10
12
|
⑥ % ssh -i ダウンロードした鍵の名前.pem ec2-user@作成したEC2インスタンスに紐付けたElastic IP
|
11
13
|
|
12
14
|
⑥を実行した結果
|
13
|
-
ssh: Could not resolve hostname
|
15
|
+
ssh: Could not resolve hostname 11.111.111.111elastic: nodename nor servname provided, or not known
|
14
16
|
と表示されてしまう
|
15
17
|
|
16
18
|
|
1
⑥を実行した後に表示される内容に誤りがありましたので修正いたしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
⑥ % ssh -i ダウンロードした鍵の名前.pem ec2-user@作成したEC2インスタンスに紐付けたElastic IP
|
11
11
|
|
12
12
|
⑥を実行した結果
|
13
|
-
|
13
|
+
ssh: Could not resolve hostname 〜ElasticのIP〜elastic: nodename nor servname provided, or not known
|
14
14
|
と表示されてしまう
|
15
15
|
|
16
16
|
|