質問編集履歴
6
追記:ssh -v
test
CHANGED
File without changes
|
test
CHANGED
@@ -90,3 +90,20 @@
|
|
90
90
|
Sep 20 14:05:16 160-251-101-53 sudo: user : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/usr/bin/vim auth.log
|
91
91
|
Sep 20 14:05:16 160-251-101-53 sudo: pam_unix(sudo:session): session opened for user root by user(uid=0)
|
92
92
|
```
|
93
|
+
パスワード認証の後のssh -vのログです
|
94
|
+
```ここに言語を入力
|
95
|
+
Authenticated to ***.**) using "password".
|
96
|
+
debug1: channel 0: new [client-session]
|
97
|
+
debug1: Requesting no-more-sessions@openssh.com
|
98
|
+
debug1: Entering interactive session.
|
99
|
+
debug1: pledge: filesystem
|
100
|
+
debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console
|
101
|
+
debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing
|
102
|
+
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
|
103
|
+
debug1: client_input_hostkeys: searching C:\\Users\\***/.ssh/known_hosts for [shurin.dev]:14810 / (none)
|
104
|
+
debug1: client_input_hostkeys: searching C:\\Users\\***/.ssh/known_hosts2 for [shurin.dev]:14810 / (none)
|
105
|
+
debug1: client_input_hostkeys: hostkeys file C:\\Users\***/.ssh/known_hosts2 does not exist
|
106
|
+
debug1: client_global_hostkeys_private_confirm: server used untrusted RSA signature algorithm ssh-rsa for key 0, disregarding
|
107
|
+
debug1: update_known_hosts: known hosts file C:\\Users\\***/.ssh/known_hosts2 does not exist
|
108
|
+
```
|
109
|
+
|
5
敬語
test
CHANGED
File without changes
|
test
CHANGED
@@ -72,7 +72,7 @@
|
|
72
72
|
|
73
73
|
### 追記
|
74
74
|
|
75
|
-
サーバーのauth.logの中身
|
75
|
+
サーバーのauth.logの中身です
|
76
76
|
```ここに言語を入力
|
77
77
|
Sep 20 14:04:56 160-251-101-53 auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=vilma rhost=5.34.207.167
|
78
78
|
Sep 20 14:04:57 160-251-101-53 auth: pam_unix(dovecot:auth): check pass; user unknown
|
4
auth.log
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# 概要
|
2
2
|
SSH接続しようとすると、公開鍵認証を設定してもパスワードを聞かれます。
|
3
3
|
鍵はRSA2,12288bitで、RLoginで生成しました。opensshでエクスポートして、
|
4
4
|
「RSA2認証鍵の署名方法を拡張(サーバーの対応が必要)」ではSHA2-256に設定しています。
|
@@ -36,7 +36,7 @@
|
|
36
36
|
debug1: load_hostkeys: fopen C:\\Users\\***/.ssh/known_hosts2: No such file or directory
|
37
37
|
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory
|
38
38
|
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory
|
39
|
-
debug1: Host '[
|
39
|
+
debug1: Host '[***.**]' is known and matches the ED25519 host key.
|
40
40
|
debug1: Found key in C:\\Users\\***/.ssh/known_hosts:1
|
41
41
|
debug1: rekey out after 134217728 blocks
|
42
42
|
debug1: SSH2_MSG_NEWKEYS sent
|
@@ -53,8 +53,8 @@
|
|
53
53
|
debug1: Offering public key: c:\\users\\***\\desktop\\id_rsa RSA SHA256:hnjc+bLjvNjRegdNch3x2LYSOLhehNBSKNS5gCf8Agw explicit agent
|
54
54
|
debug1: Authentications that can continue: publickey,password
|
55
55
|
debug1: Next authentication method: password
|
56
|
-
***@
|
56
|
+
***@***.**'s password:
|
57
|
-
Authenticated to
|
57
|
+
Authenticated to ***.** ([***.**.**.***]:****) using "password".
|
58
58
|
debug1: channel 0: new [client-session]
|
59
59
|
debug1: Requesting no-more-sessions@openssh.com
|
60
60
|
debug1: Entering interactive session.
|
@@ -62,10 +62,31 @@
|
|
62
62
|
debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console
|
63
63
|
debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing
|
64
64
|
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
|
65
|
-
debug1: client_input_hostkeys: searching C:\\Users\\***/.ssh/known_hosts for [
|
65
|
+
debug1: client_input_hostkeys: searching C:\\Users\\***/.ssh/known_hosts for [***.**/ (none)
|
66
|
-
debug1: client_input_hostkeys: searching C:\\Users\\***/.ssh/known_hosts2 for [
|
66
|
+
debug1: client_input_hostkeys: searching C:\\Users\\***/.ssh/known_hosts2 for [***.**/ (none)
|
67
67
|
debug1: client_input_hostkeys: hostkeys file C:\\Users\\***/.ssh/known_hosts2 does not exist
|
68
68
|
debug1: client_global_hostkeys_private_confirm: server used untrusted RSA signature algorithm ssh-rsa for key 0, disregarding
|
69
69
|
debug1: update_known_hosts: known hosts file C:\\Users\\***/.ssh/known_hosts2 does not exist
|
70
70
|
```
|
71
71
|
となりました。
|
72
|
+
|
73
|
+
### 追記
|
74
|
+
|
75
|
+
サーバーのauth.logの中身
|
76
|
+
```ここに言語を入力
|
77
|
+
Sep 20 14:04:56 160-251-101-53 auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=vilma rhost=5.34.207.167
|
78
|
+
Sep 20 14:04:57 160-251-101-53 auth: pam_unix(dovecot:auth): check pass; user unknown
|
79
|
+
Sep 20 14:04:57 160-251-101-53 auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=opendkim@***.** rhost=5.34.207.46
|
80
|
+
Sep 20 14:05:01 160-251-101-53 CRON[1339168]: pam_unix(cron:session): session opened for user root by (uid=0)
|
81
|
+
Sep 20 14:05:01 160-251-101-53 CRON[1339167]: pam_unix(cron:session): session opened for user munin by (uid=0)
|
82
|
+
Sep 20 14:05:01 160-251-101-53 CRON[1339168]: pam_unix(cron:session): session closed for user root
|
83
|
+
Sep 20 14:05:08 160-251-101-53 auth: pam_unix(dovecot:auth): check pass; user unknown
|
84
|
+
Sep 20 14:05:08 160-251-101-53 auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=ead rhost=5.34.207.211
|
85
|
+
Sep 20 14:05:14 160-251-101-53 CRON[1339167]: pam_unix(cron:session): session closed for user munin
|
86
|
+
Sep 20 14:05:15 160-251-101-53 auth: pam_unix(dovecot:auth): check pass; user unknown
|
87
|
+
Sep 20 14:05:15 160-251-101-53 auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=werner rhost=5.34.207.211
|
88
|
+
Sep 20 14:05:15 160-251-101-53 auth: pam_unix(dovecot:auth): check pass; user unknown
|
89
|
+
Sep 20 14:05:15 160-251-101-53 auth: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=ecms rhost=5.34.207.167
|
90
|
+
Sep 20 14:05:16 160-251-101-53 sudo: user : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/usr/bin/vim auth.log
|
91
|
+
Sep 20 14:05:16 160-251-101-53 sudo: pam_unix(sudo:session): session opened for user root by user(uid=0)
|
92
|
+
```
|
3
ユーザー名を消す
test
CHANGED
File without changes
|
test
CHANGED
@@ -53,7 +53,7 @@
|
|
53
53
|
debug1: Offering public key: c:\\users\\***\\desktop\\id_rsa RSA SHA256:hnjc+bLjvNjRegdNch3x2LYSOLhehNBSKNS5gCf8Agw explicit agent
|
54
54
|
debug1: Authentications that can continue: publickey,password
|
55
55
|
debug1: Next authentication method: password
|
56
|
-
|
56
|
+
***@shurin.dev's password:
|
57
57
|
Authenticated to shurin.dev ([160.251.101.53]:14810) using "password".
|
58
58
|
debug1: channel 0: new [client-session]
|
59
59
|
debug1: Requesting no-more-sessions@openssh.com
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
### 概要
|
2
|
-
SSH接続しようとすると、
|
2
|
+
SSH接続しようとすると、公開鍵認証を設定してもパスワードを聞かれます。
|
3
|
+
鍵はRSA2,12288bitで、RLoginで生成しました。opensshでエクスポートして、
|
4
|
+
「RSA2認証鍵の署名方法を拡張(サーバーの対応が必要)」ではSHA2-256に設定しています。
|
3
|
-
|
5
|
+
パスワードを入力しないと
|
4
6
|
```RLogin
|
5
7
|
SSH2 User Auth Failure "publickey,password" Status=0004
|
6
8
|
Send Discconect Message..
|
@@ -8,7 +10,8 @@
|
|
8
10
|
```
|
9
11
|
と表示されてしまいます。
|
10
12
|
ssh -vでは
|
13
|
+
##### ssh -v -i "c:\users\***\desktop\id_rsa" -p ****
|
11
|
-
```
|
14
|
+
```
|
12
15
|
OpenSSH_for_Windows_8.9p1, LibreSSL 3.4.3
|
13
16
|
debug1: Connecting to ***.**
|
14
17
|
debug1: Connection established.
|
1
誤情報の訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,26 +9,15 @@
|
|
9
9
|
と表示されてしまいます。
|
10
10
|
ssh -vでは
|
11
11
|
```ここに言語を入力
|
12
|
+
OpenSSH_for_Windows_8.9p1, LibreSSL 3.4.3
|
12
|
-
debug1: Connecting to
|
13
|
+
debug1: Connecting to ***.**
|
13
14
|
debug1: Connection established.
|
14
|
-
debug1: identity file
|
15
|
+
debug1: identity file c:\\****\desktop\id_rsa type 0
|
15
|
-
debug1: identity file
|
16
|
+
debug1: identity file c:\\*****\desktop\id_rsa-cert type -1
|
16
|
-
debug1: identity file C:\\Users\\***/.ssh/id_ecdsa type -1
|
17
|
-
debug1: identity file C:\\Users\\***/.ssh/id_ecdsa-cert type -1
|
18
|
-
debug1: identity file C:\\Users\\***/.ssh/id_ecdsa_sk type -1
|
19
|
-
debug1: identity file C:\\Users\\***/.ssh/id_ecdsa_sk-cert type -1
|
20
|
-
debug1: identity file C:\\Users\\***/.ssh/id_ed25519 type -1
|
21
|
-
debug1: identity file C:\\Users\\***/.ssh/id_ed25519-cert type -1
|
22
|
-
debug1: identity file C:\\Users\\***/.ssh/id_ed25519_sk type -1
|
23
|
-
debug1: identity file C:\\Users\\***/.ssh/id_ed25519_sk-cert type -1
|
24
|
-
debug1: identity file C:\\Users\\***/.ssh/id_xmss type -1
|
25
|
-
debug1: identity file C:\\Users\\***/.ssh/id_xmss-cert type -1
|
26
|
-
debug1: identity file C:\\Users\\***.ssh/id_dsa type -1
|
27
|
-
debug1: identity file C:\\Users\\***/.ssh/id_dsa-cert type -1
|
28
17
|
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.9
|
29
18
|
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.5
|
30
19
|
debug1: compat_banner: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.5 pat OpenSSH* compat 0x04000000
|
31
|
-
debug1: Authenticating to ***.** as user
|
20
|
+
debug1: Authenticating to ***.**:*** as 'user'
|
32
21
|
debug1: load_hostkeys: fopen C:\\Users\\***/.ssh/known_hosts2: No such file or directory
|
33
22
|
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory
|
34
23
|
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory
|
@@ -41,37 +30,39 @@
|
|
41
30
|
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
|
42
31
|
debug1: SSH2_MSG_KEX_ECDH_REPLY received
|
43
32
|
debug1: Server host key: ssh-ed25519 SHA256:9Kbpa77XQpjpUW5aIprNq1WkBhqSHdDz8nLbUFVhS6c
|
44
|
-
debug1: load_hostkeys: fopen C:\\Users\\
|
33
|
+
debug1: load_hostkeys: fopen C:\\Users\\***/.ssh/known_hosts2: No such file or directory
|
45
34
|
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory
|
46
35
|
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory
|
47
|
-
debug1: Host '
|
36
|
+
debug1: Host '[shurin.dev]:14810' is known and matches the ED25519 host key.
|
48
37
|
debug1: Found key in C:\\Users\\***/.ssh/known_hosts:1
|
49
38
|
debug1: rekey out after 134217728 blocks
|
50
39
|
debug1: SSH2_MSG_NEWKEYS sent
|
51
40
|
debug1: expecting SSH2_MSG_NEWKEYS
|
52
41
|
debug1: SSH2_MSG_NEWKEYS received
|
53
42
|
debug1: rekey in after 134217728 blocks
|
54
|
-
debug1: get_agent_identities:
|
43
|
+
debug1: get_agent_identities: agent returned 1 keys
|
55
|
-
debug1: Will attempt key: C:\\Users\\***/.ssh/id_rsa
|
56
|
-
debug1: Will attempt key: C:\\Users\\***/.ssh/id_ecdsa
|
57
|
-
debug1: Will attempt key:
|
44
|
+
debug1: Will attempt key: c:\\users\\***\\desktop\\id_rsa RSA SHA256:hnjc+bLjvNjRegdNch3x2LYSOLhehNBSKNS5gCf8Agw explicit agent
|
58
|
-
debug1: Will attempt key: C:\\Users\\***/.ssh/id_ed25519
|
59
|
-
debug1: Will attempt key: C:\\Users\\***/.ssh/id_ed25519_sk
|
60
|
-
debug1: Will attempt key: C:\\Users\\***/.ssh/id_xmss
|
61
|
-
debug1: Will attempt key: C:\\Users\\***/.ssh/id_dsa
|
62
45
|
debug1: SSH2_MSG_EXT_INFO received
|
63
46
|
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com>
|
64
47
|
debug1: SSH2_MSG_SERVICE_ACCEPT received
|
65
48
|
debug1: Authentications that can continue: publickey,password
|
66
49
|
debug1: Next authentication method: publickey
|
50
|
+
debug1: Offering public key: c:\\users\\***\\desktop\\id_rsa RSA SHA256:hnjc+bLjvNjRegdNch3x2LYSOLhehNBSKNS5gCf8Agw explicit agent
|
67
|
-
debug1:
|
51
|
+
debug1: Authentications that can continue: publickey,password
|
68
|
-
debug1: Trying private key: C:\\Users\\***/.ssh/id_ecdsa
|
69
|
-
debug1: Trying private key: C:\\Users\\***/.ssh/id_ecdsa_sk
|
70
|
-
debug1: Trying private key: C:\\Users\\***/.ssh/id_ed25519
|
71
|
-
debug1: Trying private key: C:\\Users\\***/.ssh/id_ed25519_sk
|
72
|
-
debug1: Trying private key: C:\\Users\\***/.ssh/id_xmss
|
73
|
-
debug1: Trying private key: C:\\Users\\***/.ssh/id_dsa
|
74
52
|
debug1: Next authentication method: password
|
75
|
-
us
|
53
|
+
mizuki@shurin.dev's password:
|
54
|
+
Authenticated to shurin.dev ([160.251.101.53]:14810) using "password".
|
55
|
+
debug1: channel 0: new [client-session]
|
56
|
+
debug1: Requesting no-more-sessions@openssh.com
|
57
|
+
debug1: Entering interactive session.
|
58
|
+
debug1: pledge: filesystem
|
59
|
+
debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console
|
60
|
+
debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing
|
61
|
+
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
|
62
|
+
debug1: client_input_hostkeys: searching C:\\Users\\***/.ssh/known_hosts for [shurin.dev]:14810 / (none)
|
63
|
+
debug1: client_input_hostkeys: searching C:\\Users\\***/.ssh/known_hosts2 for [shurin.dev]:14810 / (none)
|
64
|
+
debug1: client_input_hostkeys: hostkeys file C:\\Users\\***/.ssh/known_hosts2 does not exist
|
65
|
+
debug1: client_global_hostkeys_private_confirm: server used untrusted RSA signature algorithm ssh-rsa for key 0, disregarding
|
66
|
+
debug1: update_known_hosts: known hosts file C:\\Users\\***/.ssh/known_hosts2 does not exist
|
76
67
|
```
|
77
68
|
となりました。
|