質問するログイン新規登録

質問編集履歴

3

試したこと追記

2020/08/12 05:57

投稿

shoco
shoco

スコア170

title CHANGED
File without changes
body CHANGED
@@ -16,6 +16,7 @@
16
16
 
17
17
  SSHで接続もできなくなりました。
18
18
  ```
19
+
19
20
  tom@TomMac ~/.ssh $ ssh -i ~/my-key.pem ec2-user@ecXX.XXX.X.XXX.ap-northeast-1.compute.amazona
20
21
  Warning: Identity file /Users/tom/my-key.pem not accessible: No such file or directory.
21
22
  Warning: Permanently added 'ecXX.XXX.X.XXX.ap-northeast-1.compute.amazonaws.com,XX.XXX.X.XXX' (ECDSA) to the list of known hosts.
@@ -23,4 +24,28 @@
23
24
 
24
25
  ```
25
26
 
27
+ #試したこと(追記)
28
+ SSH間違ってました。上記エラーになって当然です...
29
+
30
+ 回答者様からアドバイスいただきました。
31
+ コンソールの赤矢印の情報がsshコマンドに必要と聞き試してみました。
32
+ ```
33
+ ssh -i ~/.ssh/my-key.pem ec2-user@XX.XXX.X.XXX //を実行(この時はIPアドレスだけ)
34
+ ```
35
+
36
+ ![イメージ説明](ba8c3c7790119a4319dd6368246815ec.png)
37
+ エラーメッセージが変わりました。
38
+ ```
39
+ Warning: Permanently added 'XX.XXX.X.XXX' (ECDSA) to the list of known hosts.
40
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
41
+ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
42
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
43
+ Permissions 0644 for '/Users/tom/.ssh/my-key.pem' are too open.
44
+ It is required that your private key files are NOT accessible by others.
45
+ This private key will be ignored.
46
+ Load key "/Users/tom/.ssh/my-key.pem": bad permissions
47
+ ec2-user@XX.XXX.X.XXX: Permission denied (publickey).
48
+ ```
49
+
50
+
26
51
  詳しい方、知っている方がいましたらよろしくお願いいたします。

2

エラ〜メッセージ整える

2020/08/12 05:57

投稿

shoco
shoco

スコア170

title CHANGED
File without changes
body CHANGED
@@ -16,10 +16,11 @@
16
16
 
17
17
  SSHで接続もできなくなりました。
18
18
  ```
19
+ tom@TomMac ~/.ssh $ ssh -i ~/my-key.pem ec2-user@ecXX.XXX.X.XXX.ap-northeast-1.compute.amazona
19
20
  Warning: Identity file /Users/tom/my-key.pem not accessible: No such file or directory.
20
21
  Warning: Permanently added 'ecXX.XXX.X.XXX.ap-northeast-1.compute.amazonaws.com,XX.XXX.X.XXX' (ECDSA) to the list of known hosts.
21
22
  ec2-user@ecXX.XXX.X.XXX.ap-northeast-1.compute.amazonaws.com: Permission denied (publickey).
22
- ✘ tom@TomMac  ~/.ssh  ssh -i ~/my-key.pem ec2-user@ecXX.XXX.X.XXX.ap-northeast-1.compute.amazona
23
+
23
24
  ```
24
25
 
25
26
  詳しい方、知っている方がいましたらよろしくお願いいたします。

1

タイトル編集

2020/08/12 05:39

投稿

shoco
shoco

スコア170

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