質問編集履歴

3

試したこと追記

2020/08/12 05:57

投稿

shoco
shoco

スコア148

test CHANGED
File without changes
test CHANGED
@@ -34,6 +34,8 @@
34
34
 
35
35
  ```
36
36
 
37
+
38
+
37
39
  tom@TomMac ~/.ssh $ ssh -i ~/my-key.pem ec2-user@ecXX.XXX.X.XXX.ap-northeast-1.compute.amazona
38
40
 
39
41
  Warning: Identity file /Users/tom/my-key.pem not accessible: No such file or directory.
@@ -48,4 +50,52 @@
48
50
 
49
51
 
50
52
 
53
+ #試したこと(追記)
54
+
55
+ SSH間違ってました。上記エラーになって当然です...
56
+
57
+
58
+
59
+ 回答者様からアドバイスいただきました。
60
+
61
+ コンソールの赤矢印の情報がsshコマンドに必要と聞き試してみました。
62
+
63
+ ```
64
+
65
+ ssh -i ~/.ssh/my-key.pem ec2-user@XX.XXX.X.XXX //を実行(この時はIPアドレスだけ)
66
+
67
+ ```
68
+
69
+
70
+
71
+ ![イメージ説明](ba8c3c7790119a4319dd6368246815ec.png)
72
+
73
+ エラーメッセージが変わりました。
74
+
75
+ ```
76
+
77
+ Warning: Permanently added 'XX.XXX.X.XXX' (ECDSA) to the list of known hosts.
78
+
79
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
80
+
81
+ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
82
+
83
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
84
+
85
+ Permissions 0644 for '/Users/tom/.ssh/my-key.pem' are too open.
86
+
87
+ It is required that your private key files are NOT accessible by others.
88
+
89
+ This private key will be ignored.
90
+
91
+ Load key "/Users/tom/.ssh/my-key.pem": bad permissions
92
+
93
+ ec2-user@XX.XXX.X.XXX: Permission denied (publickey).
94
+
95
+ ```
96
+
97
+
98
+
99
+
100
+
51
101
  詳しい方、知っている方がいましたらよろしくお願いいたします。

2

エラ〜メッセージ整える

2020/08/12 05:57

投稿

shoco
shoco

スコア148

test CHANGED
File without changes
test CHANGED
@@ -34,13 +34,15 @@
34
34
 
35
35
  ```
36
36
 
37
+ tom@TomMac ~/.ssh $ ssh -i ~/my-key.pem ec2-user@ecXX.XXX.X.XXX.ap-northeast-1.compute.amazona
38
+
37
39
  Warning: Identity file /Users/tom/my-key.pem not accessible: No such file or directory.
38
40
 
39
41
  Warning: Permanently added 'ecXX.XXX.X.XXX.ap-northeast-1.compute.amazonaws.com,XX.XXX.X.XXX' (ECDSA) to the list of known hosts.
40
42
 
41
43
  ec2-user@ecXX.XXX.X.XXX.ap-northeast-1.compute.amazonaws.com: Permission denied (publickey).
42
44
 
43
- ✘ tom@TomMac  ~/.ssh  ssh -i ~/my-key.pem ec2-user@ecXX.XXX.X.XXX.ap-northeast-1.compute.amazona
45
+
44
46
 
45
47
  ```
46
48
 

1

タイトル編集

2020/08/12 05:39

投稿

shoco
shoco

スコア148

test CHANGED
@@ -1 +1 @@
1
- インスタンスタイプを変えたらWEBアプリに繋がらなくなった
1
+ AWSのインスタンスタイプを変えたらWEBアプリに繋がらなくなった
test CHANGED
File without changes