質問編集履歴
4
誤字
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
ec2 にssh ログインできません
|
test
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
初心者で初めてAWSにログインしたいです。
|
2
|
-
|
3
|
-
$ ssh-keygen -t rsa -f ec2
|
4
|
-
|
5
|
-
$ cat ec2.pub
|
6
|
-
|
7
|
-
でSSH鍵の新規作成しました。ここまではできたと思うのですが、ログインしようとすると下記エラーが出現しログインができません。
|
8
2
|
|
9
3
|
|
10
4
|
|
5
|
+
ログインしようとすると下記エラーが出現しログインができません。
|
6
|
+
|
7
|
+
|
8
|
+
|
11
|
-
-VirtualBox:/$ ssh -i
|
9
|
+
-VirtualBox:/$ ssh -i Key ec2-user@{数字}
|
12
10
|
|
13
11
|
The authenticity of host '数字(数字)' can't be established.
|
14
12
|
|
@@ -22,32 +20,10 @@
|
|
22
20
|
|
23
21
|
|
24
22
|
|
25
|
-
となったので自身で調べ
|
23
|
+
となったので自身で調べたのですが,下記が出現します.
|
26
24
|
|
27
25
|
|
28
26
|
|
29
|
-
$ sudo chown ユーザー名 /home/ユーザー名/.ssh/known_hosts
|
30
|
-
|
31
|
-
$ sudo chmod 600 /home/ユーザー名.ssh/known_hosts
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
を試したのですが、下記が出現します.
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
-VirtualBox:/$ ssh -i パスフレーズ ec2-user@{数字}
|
40
|
-
|
41
|
-
The authenticity of host '数字(数字)' can't be established.
|
42
|
-
|
43
|
-
ECDSA key fingerprint is SHA○○○:英数字.
|
44
|
-
|
45
|
-
Are you sure you want to continue connecting (yes/no)? yes
|
46
|
-
|
47
|
-
Failed to add the host to the list of known hosts
|
27
|
+
Failed to add the host to the list of known hosts.
|
48
28
|
|
49
29
|
Permission denied (publickey).
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
Linuxを使用しており,自身で調べいろいろ試したのですがどうしてもログインできない状態です。どうすればログインができるようになるのでしょうか?初心者のためわかりやすく教えていただけますと幸いです。
|
3
$ sudo chown ユーザー名 /home/ユーザー名/.ssh/known_hosts $ sudo chmod 600 /home/ユーザー名.ssh/known_hostsを試しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,6 +22,32 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
+
となったので自身で調べ、
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
$ sudo chown ユーザー名 /home/ユーザー名/.ssh/known_hosts
|
30
|
+
|
31
|
+
$ sudo chmod 600 /home/ユーザー名.ssh/known_hosts
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
を試したのですが、下記が出現します.
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
-VirtualBox:/$ ssh -i パスフレーズ ec2-user@{数字}
|
40
|
+
|
41
|
+
The authenticity of host '数字(数字)' can't be established.
|
42
|
+
|
43
|
+
ECDSA key fingerprint is SHA○○○:英数字.
|
44
|
+
|
45
|
+
Are you sure you want to continue connecting (yes/no)? yes
|
46
|
+
|
47
|
+
Failed to add the host to the list of known hosts (/home/bemm060/.ssh/known_hosts).
|
48
|
+
|
49
|
+
Permission denied (publickey).
|
50
|
+
|
25
51
|
|
26
52
|
|
27
53
|
Linuxを使用しており,自身で調べいろいろ試したのですがどうしてもログインできない状態です。どうすればログインができるようになるのでしょうか?初心者のためわかりやすく教えていただけますと幸いです。
|
2
/path/to/privateKeyをパスフレーズに変えました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,19 +8,19 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
-VirtualBox:/$ ssh -i
|
11
|
+
-VirtualBox:/$ ssh -i パスフレーズ ec2-user@{数字}
|
12
|
-
|
13
|
-
Warning: Identity file /path/to/privateKey not accessible: No such file or directory.
|
14
12
|
|
15
13
|
The authenticity of host '数字(数字)' can't be established.
|
16
14
|
|
17
|
-
ECDSA key fingerprint is SHA○○○:英数字
|
15
|
+
ECDSA key fingerprint is SHA○○○:英数字.
|
18
16
|
|
19
17
|
Are you sure you want to continue connecting (yes/no)? yes
|
20
18
|
|
21
19
|
Warning: Permanently added '数字' (ECDSA) to the list of known hosts.
|
22
20
|
|
23
|
-
Permission denied (publickey)
|
21
|
+
Permission denied (publickey).
|
22
|
+
|
23
|
+
|
24
24
|
|
25
25
|
|
26
26
|
|
1
初心者マークを付けました
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|