質問編集履歴
5
追記2 デバックSSHのログ等
title
CHANGED
File without changes
|
body
CHANGED
@@ -68,7 +68,7 @@
|
|
68
68
|
|
69
69
|
###追記2
|
70
70
|
・IPv6での接続:可能
|
71
|
-
・UseDNS(sshd_config)の項目:コメントアウト状態だったので、「#」を外して再起動したが状況は変化なし
|
71
|
+
・UseDNS(sshd_config)の項目:「UseDNS no」がコメントアウト状態だったので、「#」を外して再起動したが状況は変化なし
|
72
72
|
・hosts.allow、hosts.deny、access.conf のファイル:初期状態からいじっておらず、すべてコメントアウト状態
|
73
73
|
・resolv.conf:PCで調べたDNSサーバーとの一致を確認
|
74
74
|
|
4
追記2 デバックSSHのログ等
title
CHANGED
File without changes
|
body
CHANGED
@@ -66,6 +66,69 @@
|
|
66
66
|
Apr 21 11:36:00 HostName systemd: pam_unix(systemd-user:session): session opened for user UserName by (uid=0)
|
67
67
|
```
|
68
68
|
|
69
|
+
###追記2
|
70
|
+
・IPv6での接続:可能
|
71
|
+
・UseDNS(sshd_config)の項目:コメントアウト状態だったので、「#」を外して再起動したが状況は変化なし
|
72
|
+
・hosts.allow、hosts.deny、access.conf のファイル:初期状態からいじっておらず、すべてコメントアウト状態
|
73
|
+
・resolv.conf:PCで調べたDNSサーバーとの一致を確認
|
74
|
+
|
75
|
+
WindowsコマンドプロンプトでのデバックSSH(ssh -vvv user@192.168.10.10)
|
76
|
+
```
|
77
|
+
UserName@"ラズベリーパイのIPv4"'s password:"正しいパスワードを入力"
|
78
|
+
debug3: send packet: type 50
|
79
|
+
debug2: we sent a password packet, wait for reply
|
80
|
+
debug3: receive packet: type 52
|
81
|
+
debug1: Authentication succeeded (password).
|
82
|
+
Authenticated to ラズベリーパイのIPv4 ([ラズベリーパイのIPv4]:22).
|
83
|
+
debug1: channel 0: new [client-session]
|
84
|
+
debug3: ssh_session2_open: channel_new: 0
|
85
|
+
debug2: channel 0: send open
|
86
|
+
debug3: send packet: type 90
|
87
|
+
debug1: Requesting no-more-sessions@openssh.com
|
88
|
+
debug3: send packet: type 80
|
89
|
+
debug1: Entering interactive session.
|
90
|
+
debug1: pledge: network
|
91
|
+
debug1: console supports the ansi parsing
|
92
|
+
debug3: Successfully set console output code page from:932 to 65001
|
93
|
+
debug3: Successfully set console input code page from:932 to 65001
|
94
|
+
debug3: receive packet: type 80
|
95
|
+
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
|
96
|
+
debug3: receive packet: type 91
|
97
|
+
debug2: channel_input_open_confirmation: channel 0: callback start
|
98
|
+
debug2: fd 3 setting TCP_NODELAY
|
99
|
+
debug2: client_session2_setup: id 0
|
100
|
+
debug2: channel 0: request pty-req confirm 1
|
101
|
+
debug3: send packet: type 98
|
102
|
+
debug2: channel 0: request shell confirm 1
|
103
|
+
debug3: send packet: type 98
|
104
|
+
debug2: channel_input_open_confirmation: channel 0: callback done
|
105
|
+
debug2: channel 0: open confirm rwindow 0 rmax 32768
|
106
|
+
```
|
107
|
+
ここで停止してしまいます。IPv6なら、ここから
|
108
|
+
```
|
109
|
+
debug3: receive packet: type 99
|
110
|
+
debug2: channel_input_status_confirm: type 99 id 0
|
111
|
+
debug2: PTY allocation request accepted on channel 0
|
112
|
+
debug2: channel 0: rcvd adjust 2097152
|
113
|
+
debug3: receive packet: type 99
|
114
|
+
debug2: channel_input_status_confirm: type 99 id 0
|
115
|
+
debug2: shell request accepted on channel 0
|
116
|
+
debug2: client_check_window_change: changed
|
117
|
+
debug2: channel 0: request window-change confirm 0
|
118
|
+
debug3: send packet: type 98
|
119
|
+
Linux RoomControlHost 4.19.97+ #1294 Thu Jan 30 13:10:54 GMT 2020 armv6l
|
120
|
+
|
121
|
+
The programs included with the Debian GNU/Linux system are free software;
|
122
|
+
the exact distribution terms for each program are described in the
|
123
|
+
individual files in /usr/share/doc/*/copyright.
|
124
|
+
|
125
|
+
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
|
126
|
+
permitted by applicable law.
|
127
|
+
Last login: Tue Apr 21 14:50:34 2020 from PCのIP
|
128
|
+
HostName@Username:~ $
|
129
|
+
```
|
130
|
+
となることを確認しています。
|
131
|
+
|
69
132
|
### 補足情報
|
70
133
|
SSHターミナル:RLogin
|
71
134
|
接続端末、raspberry pi共にWiFi接続
|
3
logの追加・追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,9 +12,15 @@
|
|
12
12
|
|
13
13
|
とした時のみ接続ができない状況です。
|
14
14
|
|
15
|
-
具体的には、ログイン画面は表示されますが、ユーザー名とパスワードを入力した後進まなくなります。
|
15
|
+
~~具体的には、ログイン画面は表示されますが、ユーザー名とパスワードを入力した後進まなくなります。~~
|
16
|
+
**時間によって挙動が異なります。**
|
17
|
+
**・ユーザー名とパスワードを入力した後進まなくなる**
|
18
|
+
**・入力待ち状態にはなるが一切入力を受け付けない**
|
19
|
+
**・受け付けるが反映まで時間がかかりすぎる(sudoと打っても五秒後くらいに表示される) **
|
20
|
+
**・受け付け状態になるが、打った文字が反映されない**
|
21
|
+
**などです。**
|
16
22
|
|
17
|
-
また、ipアドレスではなく「ホスト名.local」を使用した場合は
|
23
|
+
また、ipアドレスではなく「ホスト名.local」を使用した場合は上記の問題は発生しません。
|
18
24
|
|
19
25
|
### 試したこと
|
20
26
|
|
@@ -25,13 +31,43 @@
|
|
25
31
|
この状態で、ユーザー名の変更の作業をしました。
|
26
32
|
[参考にしたページ](https://jyn.jp/raspberrypi-username-change/)
|
27
33
|
|
28
|
-
新規作成したユーザー(tmp)でipアドレスでの接続は可能ですが、piユーザーの名前変更を行ったユーザー(参考ページではnewpi)でのipアドレスで接続が
|
34
|
+
新規作成したユーザー(tmp)でipアドレスでの接続は可能ですが、piユーザーの名前変更を行ったユーザー(参考ページではnewpi)でのipアドレスで接続すると問題が発生します。
|
29
35
|
|
30
36
|
また上記の通り、newpiユーザーであっても「ホスト名.local」での接続は可能です。
|
31
37
|
|
32
38
|
新規作成したユーザーtmpは、参考にしたページ通り削除済みです。
|
33
39
|
|
40
|
+
### 追記
|
41
|
+
/var/log/auth.log の内容抜粋です。
|
42
|
+
質問当初と少し状況が変化してしまいました。(再起動くらいしかしていませんが)
|
43
|
+
しかし依然として操作ができる段階にはなっていません。
|
44
|
+
|
45
|
+
RaspberryPiのインターネットへの接続を確認
|
46
|
+
↓
|
47
|
+
IPアドレスで接続を試行:コマンド受け付け状態にならない→ターミナルが閉じてしまう
|
48
|
+
↓
|
49
|
+
「ホスト名.local」で接続:正常に通信可能
|
50
|
+
↓
|
51
|
+
この状態で「/var/log/auth.log」を確認
|
52
|
+
|
53
|
+
```
|
54
|
+
Apr 21 11:33:44 HostName sshd[458]: Server listening on 0.0.0.0 port 22.
|
55
|
+
Apr 21 11:33:44 HostName sshd[458]: Server listening on :: port 22.
|
56
|
+
Apr 21 11:34:19 HostName sshd[478]: Accepted password for UserName from "接続したPCのIPv4" port 64829 ssh2
|
57
|
+
Apr 21 11:34:19 HostName sshd[478]: pam_unix(sshd:session): session opened for user UserName by (uid=0)
|
58
|
+
Apr 21 11:34:20 HostName systemd-logind[268]: New session c1 of user UserName.
|
59
|
+
Apr 21 11:34:20 HostName systemd: pam_unix(systemd-user:session): session opened for user UserName by (uid=0)
|
60
|
+
Apr 21 11:34:58 HostName sshd[478]: pam_unix(sshd:session): session closed for user UserName
|
61
|
+
Apr 21 11:34:58 HostName systemd-logind[268]: Session c1 logged out. Waiting for processes to exit.
|
62
|
+
Apr 21 11:34:58 HostName systemd-logind[268]: Removed session c1.
|
63
|
+
Apr 21 11:36:00 HostName sshd[519]: Accepted password for UserName from "接続したPCのIPv6" port 65043 ssh2
|
64
|
+
Apr 21 11:36:00 HostName sshd[519]: pam_unix(sshd:session): session opened for user UserName by (uid=0)
|
65
|
+
Apr 21 11:36:00 HostName systemd-logind[268]: New session c2 of user UserName.
|
66
|
+
Apr 21 11:36:00 HostName systemd: pam_unix(systemd-user:session): session opened for user UserName by (uid=0)
|
67
|
+
```
|
68
|
+
|
34
69
|
### 補足情報
|
70
|
+
SSHターミナル:RLogin
|
35
71
|
接続端末、raspberry pi共にWiFi接続
|
36
72
|
raspberry piへのPingは通ることを確認
|
37
73
|
ハードウェア:RaspberryPi Zero W
|
2
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
3
|
RaspberryPiを使用して家電をコントロールする機器を作成しています。sshを使用して開発しているのですが、接続できない問題が解決できないので質問を投稿します。
|
4
|
+
ipアドレスでの接続を可能にする方法が有れば教えていただきたいです。
|
4
5
|
|
5
6
|
### 発生している問題
|
6
7
|
|
1
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
RaspberryPiへの
|
1
|
+
RaspberryPiへのipアドレスでのssh接続が出来ない。
|
body
CHANGED
File without changes
|