質問編集履歴
3
ls .ssh
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,21 +20,19 @@
|
|
20
20
|
|
21
21
|
LED@raspberrypi:~ $ ls -la .ssh
|
22
22
|
|
23
|
-
|
23
|
+
total 24
|
24
24
|
|
25
|
-
drwx------
|
25
|
+
drwx------ 1 LED LED 4096 Jul 29 15:16 .
|
26
26
|
|
27
|
-
drwxr-xr-x
|
27
|
+
drwxr-xr-x 1 LED LED 4096 Jul 11 14:41 ..
|
28
28
|
|
29
|
-
-rw------- 1 LED LED 381
|
29
|
+
-rw------- 1 LED LED 381 Jul 29 15:19 authorized_keys
|
30
30
|
|
31
|
-
-rw------- 1 LED LED 1675
|
31
|
+
-rw------- 1 LED LED 1675 Jul 11 14:57 id_rsa
|
32
32
|
|
33
|
-
-rw------- 1 LED LED 381
|
33
|
+
-rw------- 1 LED LED 381 Jul 29 15:16 id_rsa.pub
|
34
34
|
|
35
|
-
-rw-r--r-- 1 LED users 222
|
35
|
+
-rw-r--r-- 1 LED users 222 Jul 11 14:41 known_hosts
|
36
|
-
|
37
|
-
|
38
36
|
|
39
37
|
```
|
40
38
|
|
2
日本語の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,11 +14,11 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
###
|
17
|
+
### 各ファイルのパーミッション、クライアント側のログ
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
-
LED@raspberry:~ $ ls -la .ssh
|
21
|
+
LED@raspberrypi:~ $ ls -la .ssh
|
22
22
|
|
23
23
|
合計 24
|
24
24
|
|
1
log
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,24 +14,118 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
+
###
|
18
|
+
|
19
|
+
```
|
20
|
+
|
17
|
-
|
21
|
+
LED@raspberry:~ $ ls -la .ssh
|
22
|
+
|
23
|
+
合計 24
|
24
|
+
|
25
|
+
drwx------ 2 LED LED 4096 7月 29 15:16 .
|
26
|
+
|
27
|
+
drwxr-xr-x 3 LED LED 4096 7月 11 14:41 ..
|
28
|
+
|
29
|
+
-rw------- 1 LED LED 381 7月 29 15:19 authorized_keys
|
30
|
+
|
31
|
+
-rw------- 1 LED LED 1675 7月 11 14:57 id_rsa
|
32
|
+
|
33
|
+
-rw------- 1 LED LED 381 7月 29 15:16 id_rsa.pub
|
34
|
+
|
35
|
+
-rw-r--r-- 1 LED users 222 7月 11 14:41 known_hosts
|
18
36
|
|
19
37
|
|
20
38
|
|
21
39
|
```
|
22
40
|
|
41
|
+
|
42
|
+
|
23
|
-
|
43
|
+
/var/log/auth.log
|
24
44
|
|
25
45
|
```
|
26
46
|
|
47
|
+
Jul 29 16:01:47 raspberrypi sshd[447]: debug1: Forked child 707.
|
27
48
|
|
49
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: Set /proc/self/oom_score_adj to 0
|
28
50
|
|
51
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8
|
52
|
+
|
53
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: inetd sockets after dupping: 3, 3
|
54
|
+
|
55
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: Connection from 192.168.101.253 port 39312 on 192.168.101.159 port 22
|
56
|
+
|
57
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: Client protocol version 2.0; client software version OpenSSH_7.4p1 Debian-10+deb9u6
|
58
|
+
|
59
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: match: OpenSSH_7.4p1 Debian-10+deb9u6 pat OpenSSH* compat 0x04000000
|
60
|
+
|
61
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: Local version string SSH-2.0-OpenSSH_7.4p1 Raspbian-10+deb9u6
|
62
|
+
|
63
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: Enabling compatibility mode for protocol 2.0
|
64
|
+
|
65
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: permanently_set_uid: 107/65534 [preauth]
|
66
|
+
|
67
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: list_hostkey_types: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
|
68
|
+
|
69
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: SSH2_MSG_KEXINIT sent [preauth]
|
70
|
+
|
71
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: SSH2_MSG_KEXINIT received [preauth]
|
72
|
+
|
73
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: kex: algorithm: curve25519-sha256 [preauth]
|
74
|
+
|
75
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: kex: host key algorithm: ecdsa-sha2-nistp256 [preauth]
|
76
|
+
|
77
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none [preauth]
|
78
|
+
|
79
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none [preauth]
|
80
|
+
|
81
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]
|
82
|
+
|
83
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: rekey after 134217728 blocks [preauth]
|
84
|
+
|
85
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: SSH2_MSG_NEWKEYS sent [preauth]
|
86
|
+
|
87
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: expecting SSH2_MSG_NEWKEYS [preauth]
|
88
|
+
|
89
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: SSH2_MSG_NEWKEYS received [preauth]
|
90
|
+
|
91
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: rekey after 134217728 blocks [preauth]
|
92
|
+
|
29
|
-
|
93
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: KEX done [preauth]
|
94
|
+
|
95
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: userauth-request for user LED service ssh-connection method none [preauth]
|
96
|
+
|
97
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: attempt 0 failures 0 [preauth]
|
98
|
+
|
99
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: PAM: initializing for "LED"
|
100
|
+
|
101
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: PAM: setting PAM_RHOST to "192.168.101.253"
|
102
|
+
|
103
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: PAM: setting PAM_TTY to "ssh"
|
104
|
+
|
105
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: userauth-request for user LED service ssh-connection method publickey [preauth]
|
106
|
+
|
107
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: attempt 1 failures 0 [preauth]
|
108
|
+
|
109
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: userauth_pubkey: test whether pkalg/pkblob are acceptable for RSA SHA256:V8iqoIwrpARwkx2WpM0BBvxnJC/52+pRQU6Hkyxq62s [preauth]
|
110
|
+
|
111
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: temporarily_use_uid: 10001/100 (e=0/0)
|
112
|
+
|
113
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: trying public key file /home/LED/.ssh/authorized_keys
|
114
|
+
|
115
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: Could not open authorized keys '/home/LED/.ssh/authorized_keys': Permission denied
|
116
|
+
|
117
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: restore_uid: 0/0
|
118
|
+
|
119
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: temporarily_use_uid: 10001/100 (e=0/0)
|
120
|
+
|
121
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: trying public key file /home/LED/.ssh/authorized_keys2
|
122
|
+
|
123
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: Could not open authorized keys '/home/LED/.ssh/authorized_keys2': Permission denied
|
124
|
+
|
125
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: debug1: restore_uid: 0/0
|
126
|
+
|
127
|
+
Jul 29 16:01:47 raspberrypi sshd[707]: Failed publickey for LED from 192.168.101.253 port 39312 ssh2: RSA SHA256:V8iqoIwrpARwkx2WpM0BBvxnJC/52+pRQU6Hkyxq62s
|
30
128
|
|
31
129
|
|
32
130
|
|
33
131
|
```
|
34
|
-
|
35
|
-
ソースコード
|
36
|
-
|
37
|
-
```
|