即時書き込み失敗:SSHを介して組み込みシステムに接続されているパイプが壊れています。

即時書き込み失敗:SSHを介して組み込みシステムに接続されているパイプが壊れています。

上記のように、SSHを介して組み込みシステム(AngströmおよびKernel 4.1を実行しているDe0-Nano-SoC FPGAボード)に接続しようとすると、「Write failed:Broken Pipe」エラーが発生し、接続が切断されます。これは通常、ネットワークの問題とタイムアウトに関連していると読みましたが、私の場合はすぐに発生したため、タイムアウトの問題になることはできません(そうですか?)。

この問題の他の回避策、またはこのエラー メッセージの原因となる可能性がある他の問題を探しています。

アップデート:異なる方向(埋め込みからホストPCへのSSH)は完全に機能します!

出力は次のとおりですtcpdump | grep cyclone5。 juggernautはホストPC、cyclone5は組み込みデバイス、fritz.boxは私のルーターです。

16:56:01.080879 IP6 juggernaut.fritz.box.48641 > fritz.box.domain: 3129+ A? cyclone5. (26)
16:56:01.080885 IP6 juggernaut.fritz.box.48641 > fritz.box.domain: 28063+ AAAA? cyclone5. (26)
16:56:01.082341 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [S], seq 1263535780, win 28640, options [mss 1432,sackOK,TS val 932516 ecr 0,nop,wscale 7], length 0
16:56:01.083400 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [S.], seq 983702311, ack 1263535781, win 28400, options [mss 1432,sackOK,TS val 55053 ecr 932516,nop,wscale 7], length 0
16:56:01.083410 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [.], ack 1, win 224, options [nop,nop,TS val 932516 ecr 55053], length 0
16:56:01.083528 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [P.], seq 1:40, ack 1, win 224, options [nop,nop,TS val 932516 ecr 55053], length 39
16:56:01.084584 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [.], ack 40, win 222, options [nop,nop,TS val 55053 ecr 932516], length 0
16:56:01.117746 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [P.], seq 1:22, ack 40, win 222, options [nop,nop,TS val 55056 ecr 932516], length 21
16:56:01.117773 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [.], ack 22, win 224, options [nop,nop,TS val 932525 ecr 55056], length 0
16:56:01.118222 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [.], seq 40:1460, ack 22, win 224, options [nop,nop,TS val 932525 ecr 55056], length 1420
16:56:01.118415 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [P.], seq 1460:2008, ack 22, win 224, options [nop,nop,TS val 932525 ecr 55056], length 548
16:56:01.118667 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [.], ack 2008, win 253, options [nop,nop,TS val 55056 ecr 932525], length 0
16:56:01.121526 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [P.], seq 22:934, ack 2008, win 253, options [nop,nop,TS val 55057 ecr 932525], length 912
16:56:01.123158 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [P.], seq 2008:2056, ack 934, win 246, options [nop,nop,TS val 932526 ecr 55057], length 48
16:56:01.159565 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [.], ack 2056, win 253, options [nop,nop,TS val 55061 ecr 932526], length 0
16:56:01.164976 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [P.], seq 934:1214, ack 2056, win 253, options [nop,nop,TS val 55061 ecr 932526], length 280
16:56:01.167861 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [P.], seq 2056:2072, ack 1214, win 261, options [nop,nop,TS val 932538 ecr 55061], length 16
16:56:01.168671 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [.], ack 2072, win 253, options [nop,nop,TS val 55061 ecr 932538], length 0
16:56:01.168678 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [P.], seq 2072:2116, ack 1214, win 261, options [nop,nop,TS val 932538 ecr 55061], length 44
16:56:01.169453 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [.], ack 2116, win 253, options [nop,nop,TS val 55061 ecr 932538], length 0
16:56:01.169760 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [P.], seq 1214:1258, ack 2116, win 253, options [nop,nop,TS val 55062 ecr 932538], length 44
16:56:01.169857 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [P.], seq 2116:2176, ack 1258, win 261, options [nop,nop,TS val 932538 ecr 55062], length 60
16:56:01.209580 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [.], ack 2176, win 253, options [nop,nop,TS val 55066 ecr 932538], length 0
16:56:01.491968 IP6 fritz.box.domain > juggernaut.fritz.box.49687: 37977* 1/1/3 PTR cyclone5.fritz.box. (208)
16:56:03.119066 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [P.], seq 1258:1334, ack 2176, win 253, options [nop,nop,TS val 55256 ecr 932538], length 76
16:56:03.119134 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [P.], seq 2176:2252, ack 1334, win 261, options [nop,nop,TS val 933025 ecr 55256], length 76
16:56:03.119954 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [.], ack 2252, win 253, options [nop,nop,TS val 55257 ecr 933025], length 0
16:56:03.122701 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [P.], seq 1334:1394, ack 2252, win 253, options [nop,nop,TS val 55257 ecr 933025], length 60
16:56:03.159841 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [.], ack 1394, win 261, options [nop,nop,TS val 933036 ecr 55257], length 0
16:56:11.034026 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [P.], seq 2252:2328, ack 1394, win 261, options [nop,nop,TS val 935004 ecr 55257], length 76
16:56:11.069809 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [.], ack 2328, win 253, options [nop,nop,TS val 56052 ecr 935004], length 0
16:56:11.165970 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [P.], seq 1394:1438, ack 2328, win 253, options [nop,nop,TS val 56061 ecr 935004], length 44
16:56:11.165983 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [.], ack 1438, win 261, options [nop,nop,TS val 935037 ecr 56061], length 0
16:56:11.166024 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [P.], seq 2328:2404, ack 1438, win 261, options [nop,nop,TS val 935037 ecr 56061], length 76
16:56:11.166816 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [.], ack 2404, win 253, options [nop,nop,TS val 56061 ecr 935037], length 0
16:56:11.167921 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [P.], seq 1438:1466, ack 2404, win 253, options [nop,nop,TS val 56061 ecr 935037], length 28
16:56:11.167985 IP6 juggernaut.fritz.box.59915 > cyclone5.fritz.box.ssh: Flags [P.], seq 2404:2508, ack 1466, win 261, options [nop,nop,TS val 935038 ecr 56061], length 104
16:56:11.173648 IP6 cyclone5.fritz.box.ssh > juggernaut.fritz.box.59915: Flags [R.], seq 1466, ack 2508, win 253, options [nop,nop,TS val 0 ecr 935038], length 0

ベストアンサー1

ネットワークの問題ではないようです。 tcpdumpにトラフィックフローがあります。 SSHサーバーの接続が失われたようです。時々、時間/スペースなどを節約するために、いくつかの単純化されたSSHサーバーが組み込みシステムで実行されます。

1) SSH サーバー側 (たとえば、内蔵デバイス) でログを表示します。何かがあるはずです。

2)SSHクライアントで詳細情報の表示(通常はssh -vvv)を有効にします。

おすすめ記事