我在笔记本电脑上重新安装了Manjaro 20.2。现在,我尝试通过scp / rsync在本地网络和外部服务器(我相信是Ubuntu20.04)和另一台笔记本(kubuntu18.04)之间传输文件。
在这两种情况下,在我的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)如果在我的kubuntu笔记本上调用rsync与Manjaro同步文件,也会发生这种情况,所以Manjaro机器是服务器还是客户端并不重要。
如果在此之后,我再次尝试通过SSH连接到get服务器,则成功验证了我的身份,但没有得到命令提示符:
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 no-more-sessions@openssh.com
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 80
debug1: client_input_global_request: rtype hostkeys-00@openssh.com 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)在我的kubuntu机器上,我可以在没有问题的情况下与服务器进行ssh/scp/rsync。而且,从我的Android到我的kubuntu机器的连接是没有问题的,但是在Manjaro上它是挂起的。我在三个不同的妻子身上观察到了这个问题,这让我觉得这与网络无关。
ssh/sshd配置(或Manjaro机器上的任何配置)无关紧要,因为我可以使用Manjaro20.2 KDE系统再现问题。
发布于 2021-01-23 21:42:28
我找到了解决办法。造成SSH问题的原因是我的wifi芯片组的驱动程序。我正在使用Broadcom BCM4311并安装broadcom-w驱动程序,解决了我的问题.我首先为所有已安装的内核安装了linux头包,然后安装了驱动程序。
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在重新启动之后,应该启用“w”驱动程序,我可以用以下命令确认这一点:
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_冰冻_为_BCM4331_使用_b43
https://archived.forum.manjaro.org/t/broadcom-wifi-driver-fails-to-install-properly/46316/2
发布于 2021-06-18 23:08:18
我在2013年macbook视网膜显示器(manjaro i3版)上挂着ssh也有类似的问题。我遵循了你提到的命令:
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我的无线网络也停止工作了。运行sudo pacman -S broadcom-wl修复了我用前面的命令中断的wifi。
对我起作用的是安装Linux510头(linux510- headers ),它与我使用sudo pacman -Syyu更新系统后的内核版本(Linux5.10.42-1)相匹配。
https://unix.stackexchange.com/questions/627451
复制相似问题