尝试连接远程服务器时 SSH 不断超时

尝试连接远程服务器时 SSH 不断超时

我正在尝试通过 ssh 连接到远程服务器。我以前这样做过,没有任何问题。但是,最近,大多数时候当我 ping 它时,它只是显示“请求超时” - 只有几次我让它工作正常。我猜连接到我尝试连接的 IP 相当困难,因为我必须使用 ZeroTier One 进行 SSH 隧道传输。

我也尝试过关闭防火墙,但似乎没有产生一致的结果。似乎超时时间大多是随机的,如果我运气好的话,它会在短时间内起作用。我做了跟踪,这是输出。

  1    19 ms     4 ms     9 ms  192.168.12.1
  2     *        *        *     Request timed out.
  3     *        *        *     Request timed out.
  4     *        *        *     Request timed out.
  5     *        *        *     Request timed out.
  6     *        *        *     Request timed out.
  7     *        *        *     Request timed out.
  8     *        *        *     Request timed out.
  9     *        *        *     Request timed out.
 10     *        *        *     Request timed out.
 11     *        *        *     Request timed out.
 12     *        *        *     Request timed out.
 13     *        *        *     Request timed out.
 14     *        *        *     Request timed out.
 15     *        *        *     Request timed out.
 16     *        *        *     Request timed out.
 17     *        *        *     Request timed out.
 18     *        *        *     Request timed out.
 19     *        *        *     Request timed out.
 20     *        *        *     Request timed out.
 21     *        *        *     Request timed out.
 22     *        *        *     Request timed out.
 23     *        *        *     Request timed out.
 24     *        *        *     Request timed out.
 25     *        *        *     Request timed out.
 26     *        *        *     Request timed out.
 27     *        *        *     Request timed out.
 28     *        *        *     Request timed out.
 29     *        *        *     Request timed out.
 30     *        *        *     Request timed out.

Trace complete.

更新:到目前为止,我尝试过的最可靠(但仍然不太可靠)的方法是刷新 DNS 并重置 IP。但这种方法一半时间都不起作用,而且每次我都必须重新启动计算机才能使用 ssh 几分钟。

更新:现在即使刷新 DNS 也不起作用。每次它都给出“目标主机无法访问”或请求超时。我无法让它工作一次。

有人知道为什么会发生这种情况吗?谢谢。

相关内容