scp/rsync を使用した後に Manjaro/Arch Linux が応答しない SSH セッション

scp/rsync を使用した後に Manjaro/Arch Linux が応答しない SSH セッション

私のラップトップにManjaro 20.2を新しくインストールしました。今、私はこのラップトップとローカルネットワーク上の他のラップトップ(kubuntu 18.04)と外部サーバー(Ubuntu 20.04と思います)の間でscp / rsyncを介してファイルを転送しようとしています。

どちらの場合も、Manjaroノートブックからrsyncへの初期呼び出しはいくつかのファイルを転送し、一時停止し、最終的に中断されます。

laptop% rsync -rtvvvuL --progress user@webserver:/directory/ /home/user/directory/
[snip]
Timeout, server webserver not responding.
rsync: connection unexpectedly closed (112760 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(228) [receiver=v3.2.3]
[receiver] _exit_cleanup(code=12, file=io.c, line=228): about to call exit(12)
rsync: connection unexpectedly closed (100412 bytes received so far) [generator]
rsync error: unexplained error (code 255) at io.c(228) [generator=v3.2.3]
[generator] _exit_cleanup(code=12, file=io.c, line=228): about to call exit(255)
rsync: [generator] write error: Broken pipe (32)

これは、Manjaro とファイルを同期するために kubuntu ラップトップで rsync を呼び出す場合にも発生するため、Manjaro システムがサーバーなのかクライアントなのかは関係ありません。

その後、WebサーバーにSSHを再試行すると正常に認証されますが、コマンドプロンプトは表示されません。

laptop% ssh -vvv user@webserver                                                                           
OpenSSH_8.4p1, OpenSSL 1.1.1i  8 Dec 2020
debug1: Reading configuration data /home/user/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/user/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/user/.ssh/known_hosts2'
debug2: resolving "webserver" port 22
debug2: ssh_connect_direct
debug1: Connecting to webserver [123.456.789.111] port 22.
debug1: Connection established.
[snip]
debug1: Local version string SSH-2.0-OpenSSH_8.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2p1 Ubuntu-4ubuntu0.1
debug1: match: OpenSSH_8.2p1 Ubuntu-4ubuntu0.1 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
[snip]
debug1: Authentication succeeded (publickey).
Authenticated to webserver ([123.456.789.111]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 80
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug3: receive packet: type 4
debug1: Remote: /home/user/.ssh/authorized_keys:4: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug3: receive packet: type 4
debug1: Remote: /home/user/.ssh/authorized_keys:4: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x48
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug3: send packet: type 98
debug2: channel 0: request shell confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug3: send packet: type 80
debug3: send packet: type 80
debug3: send packet: type 80
debug3: send packet: type 80
debug3: send packet: type 80
debug3: send packet: type 80
Timeout, server p000327627.pwhost.de not responding.

また、rsyncを再度呼び出すと、何もしません。

laptop% rsync -rtvvvuL --progress user@webserver:/directory/ /home/user/directory/
opening connection using: ssh -l user webserver rsync --server --sender -vvvuLtre.iLsfxCIvu . /directory/  (10 args)
Confirm user presence for key ECDSA-SK SHA256:[snip]
Timeout, server webserver not responding.
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(228) [Receiver=v3.2.3]
[Receiver] _exit_cleanup(code=12, file=io.c, line=228): about to call exit(12)

My Kubuntuコンピュータでは、問題なくサーバーでssh / scp / rsyncを実行できます。また、Androidからkubuntuコンピュータへの接続に問題はありませんが、Manjaroを使用すると中断されます。私はこの問題を3つの異なるWi-Fiで観察しましたが、これはネットワークとは関係がないと考えました。

Manjaro 20.2 KDE Live Systemを使用して問題を再現できるため、ssh / sshd構成(またはManjaroシステムのすべての構成)は重要ではありません。

ベストアンサー1

解決策が見つかりました。 SSH問題の原因はWiFiチップセットのドライバでした。私はBroadcom BCM4311を使用しており、Broadcom-wlドライバをインストールすると問題が解決しました。まず、インストールされたカーネルのすべてのLinuxヘッダーパッケージをインストールし、次にBroadcom-wl-dkmsドライバをインストールしました。

sudo pacman -Syyu
sudo pacman -S $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')
sudo pacman -S broadcom-wl-dkms

再起動後に "wl" ドライバーを有効にする必要があり、次を使用してこれを確認できます。

laptop% inxi -Fxz | grep BCM4331
           Device-2: Broadcom BCM4331 802.11a/b/g/n vendor: Apple AirPort Extreme driver: wl v: kernel port: efa0 

ドライバーはwl次のようになります。いいえ bcma-pci-bridge

次のウェブサイトで解決策を教えてくれました。

https://wiki.archlinux.org/index.php/Broadcom_wireless#SSH_freeze_for_BCM4331_with_b43

https://archived.forum.manjaro.org/t/broadcom-wifi-driver-fails-to-install-properly/46316/2

おすすめ記事