質問編集履歴

5

OSのバージョン

2024/05/04 02:39

投稿

Omogo
Omogo

スコア11

test CHANGED
File without changes
test CHANGED
@@ -82,4 +82,17 @@
82
82
 
83
83
  時間を測ったら、この1行だけがログイン失敗のところです。
84
84
 
85
+ ------------------------- 調べました -----------------------------
86
+ MacのOSは
87
+ macOS Sonoma 14.4.1
85
88
 
89
+ サーバーのOSは
90
+ Raspberry Pi OS
91
+ Distributor ID: Raspbian
92
+ Description: Raspbian GNU/Linux 11 (bullseye)
93
+ Release: 11
94
+ Codename: bullseye
95
+
96
+ Raspberry Piのsshdのバージョンは
97
+ OpenSSH_8.4 Raspbian-5+deb11u3, OpenSSL 1.1.1w 11 sep 2023
98
+

4

時間を測る

2024/05/03 13:53

投稿

Omogo
Omogo

スコア11

test CHANGED
File without changes
test CHANGED
@@ -79,10 +79,7 @@
79
79
  多分これだと思います。 /var/log/auth.log
80
80
 
81
81
  May 3 21:29:09 raspberrypi sshd[2259]: Unable to negotiate with 168.126.11.6 port 50268: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [preauth]
82
- May 3 21:29:41 raspberrypi sshd[2268]: Accepted password for username from 168.126.11.6 port 50269 ssh2
83
- May 3 21:29:41 raspberrypi sshd[2268]: pam_unix(sshd:session): session opened for user username(uid=1000) by (uid=0)
84
- May 3 21:29:41 raspberrypi systemd-logind[416]: New session 72 of user username.
85
82
 
86
- 時間的に見てこの行がログイン失敗のところです。
83
+ 時間を測ったら、この1だけがログイン失敗のところです。
87
84
 
88
85
 

3

ログイン失敗

2024/05/03 13:37

投稿

Omogo
Omogo

スコア11

test CHANGED
File without changes
test CHANGED
@@ -78,13 +78,11 @@
78
78
  ログファイルがどれなのか見てもよくわからないですが、
79
79
  多分これだと思います。 /var/log/auth.log
80
80
 
81
- May 3 21:24:41 raspberrypi sshd[2194]: Received disconnect from 168.126.11.6 port 50265:11: disconnected by user
82
- May 3 21:24:41 raspberrypi sshd[2194]: Disconnected from user username 168.126.11.6 port 50265
83
- May 3 21:24:41 raspberrypi sshd[2188]: pam_unix(sshd:session): session closed for user username
84
- May 3 21:24:41 raspberrypi systemd-logind[416]: Session 71 logged out. Waiting for processes to exit.
85
- May 3 21:24:41 raspberrypi systemd-logind[416]: Removed session 71.
86
81
  May 3 21:29:09 raspberrypi sshd[2259]: Unable to negotiate with 168.126.11.6 port 50268: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [preauth]
87
82
  May 3 21:29:41 raspberrypi sshd[2268]: Accepted password for username from 168.126.11.6 port 50269 ssh2
88
83
  May 3 21:29:41 raspberrypi sshd[2268]: pam_unix(sshd:session): session opened for user username(uid=1000) by (uid=0)
89
84
  May 3 21:29:41 raspberrypi systemd-logind[416]: New session 72 of user username.
90
85
 
86
+ 時間的に見てこの4行が、ログイン失敗のところです。
87
+
88
+

2

ログを追加

2024/05/03 13:27

投稿

Omogo
Omogo

スコア11

test CHANGED
File without changes
test CHANGED
@@ -74,6 +74,7 @@
74
74
  もしかして、Objective-Cで動くかなと思ってコードを書いて実行させて見ましたが、やはり同じ結果となりました。
75
75
 
76
76
  ### 補足
77
+ raspberryサーバ側のログです。
77
78
  ログファイルがどれなのか見てもよくわからないですが、
78
79
  多分これだと思います。 /var/log/auth.log
79
80
 

1

ログファイルの追加

2024/05/03 13:02

投稿

Omogo
Omogo

スコア11

test CHANGED
File without changes
test CHANGED
@@ -74,4 +74,16 @@
74
74
  もしかして、Objective-Cで動くかなと思ってコードを書いて実行させて見ましたが、やはり同じ結果となりました。
75
75
 
76
76
  ### 補足
77
- 特に
77
+ ログファイルがどれのか見てもよくわからないですが、
78
+ 多分これだと思います。 /var/log/auth.log
79
+
80
+ May 3 21:24:41 raspberrypi sshd[2194]: Received disconnect from 168.126.11.6 port 50265:11: disconnected by user
81
+ May 3 21:24:41 raspberrypi sshd[2194]: Disconnected from user username 168.126.11.6 port 50265
82
+ May 3 21:24:41 raspberrypi sshd[2188]: pam_unix(sshd:session): session closed for user username
83
+ May 3 21:24:41 raspberrypi systemd-logind[416]: Session 71 logged out. Waiting for processes to exit.
84
+ May 3 21:24:41 raspberrypi systemd-logind[416]: Removed session 71.
85
+ May 3 21:29:09 raspberrypi sshd[2259]: Unable to negotiate with 168.126.11.6 port 50268: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 [preauth]
86
+ May 3 21:29:41 raspberrypi sshd[2268]: Accepted password for username from 168.126.11.6 port 50269 ssh2
87
+ May 3 21:29:41 raspberrypi sshd[2268]: pam_unix(sshd:session): session opened for user username(uid=1000) by (uid=0)
88
+ May 3 21:29:41 raspberrypi systemd-logind[416]: New session 72 of user username.
89
+