










我用树莓派做了个端口转发到阿里云服务器,用的是 autossh 来做自动重连。
观察了 log 发现 ssh 的端口转发会比较稳定的 10 分钟左右断开一次,只是 autossh 自动帮我重连了。
端口转发的代码大概如下:
export AUTOSSH_POLL=60; sudo autossh -f -M 666 -N -o "PubkeyAuthentication=yes" -o "StrictHostKeyChecking=false" -o "PasswordAuthentication=no" -o "ServerAliveInterval 10" -o "ServerAliveCountMax 3" -L localhost:1516:localhost:1516 -i /XXXXX/id_rsa [email protected]
虽然我觉得端口转发断掉很正常,但是每 10 分钟一次未免太有规律了,应该是有什么原因导致的。
比如:
大家可以帮我想想还有其他哪些原因可能会导致这么规律的断掉吗?
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。