今天,我连接到sftp,它工作了,但几分钟后,我被断开,无法再次连接。重新启动sshd什么也没做,所以我重新启动了服务器,sftp又开始工作了几分钟。
下面是我尝试连接日志的最后一部分:
debug1: Authentication succeeded (publickey).
Authenticated to ns1 ([xx.xx.xx.xx]:22).
debug2: fd 4 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: pledge: network
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0
debug1: Remote: /root/.ssh/authorized_keys:8: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug1: Remote: /root/.ssh/authorized_keys:8: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 3 setting TCP_NODELAY
debug2: client_session2_setup: id 0
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug2: channel 0: request env confirm 0
debug1: Sending subsystem: sftp
debug2: channel 0: request subsystem confirm 1
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
packet_write_wait: Connection to xx.xx.xx.xx port 22: Broken pipe我在Debian10.9上使用openssh,所有内容都更新了。
谢谢!
发布于 2021-06-22 12:08:14
我可能发现了问题。服务器的带宽被100%使用。当我设法减少一些带宽消耗时,它又开始工作了。
发布于 2021-06-27 19:00:20
在我的例子中,我安装了一个名为“我相信rng-tools5 (debian包页)”的包,从那时起,就不再存在缺乏熵的问题了,这就是我的问题类型(可能需要重新启动)。我主要是在服务器上做的,这造成了问题,但也是在我的客户端。
节选:
rngd守护进程充当硬件TRNG (真随机数生成器)(如某些Intel/AMD/VIA芯片组中的)和内核的PRNG (伪随机数生成器)之间的桥梁。
然后,您就可以看到它能够利用什么:
sudo rngd -v示例输出:
Available entropy sources:
Intel/AMD hardware rng
DRNGhttps://unix.stackexchange.com/questions/654651
复制相似问题