在另一个大陆的服务器上使用 ssh 时 ping 速度很慢

在另一个大陆的服务器上使用 ssh 时 ping 速度很慢

因此,我正在通过 ssh 连接到另一个大陆的服务器进行编码(使用 pycharm),并且 ping 非常高。因此,我所做的一切都需要花费大量时间。有什么可以解决这个问题的吗?

以下是 traceroute 的输出

traceroute to 89.171.107.238 (89.171.107.238), 30 hops max, 60 byte packets
 1  _gateway (192.168.0.1)  3.706 ms  3.665 ms  3.639 ms
 2  172.20.50.1 (172.20.50.1)  5.765 ms  6.837 ms  7.245 ms
 3  customer-45-6-164-21.cmctelecom.com.br (45.6.164.21)  5.462 ms  5.600 ms  5.714 ms
 4  customer-45-6-167-2.cmctelecom.com.br (45.6.167.2)  7.204 ms  7.514 ms  7.285 ms
 5  198.18.1.141 (198.18.1.141)  9.643 ms  9.750 ms  9.623 ms
 6  100.110.115.78 (100.110.115.78)  8.773 ms  5.059 ms  7.623 ms
 7  * * *
 8  * * *
 9  100.127.6.154 (100.127.6.154)  5.778 ms  5.768 ms  5.759 ms
10  et-0-0-1-0.monet.border-b.bct.algartelecom.com.br (168.197.23.193)  108.200 ms  108.190 ms  112.541 ms
11  38.142.192.193 (38.142.192.193)  114.732 ms  114.720 ms  114.710 ms
12  be3454.ccr21.mia01.atlas.cogentco.com (154.54.85.113)  115.551 ms be3455.ccr22.mia01.atlas.cogentco.com (154.54.85.129)  114.628 ms  114.605 ms
13  be3482.ccr41.atl01.atlas.cogentco.com (154.54.24.145)  126.460 ms  129.097 ms  126.639 ms
14  be2113.ccr42.dca01.atlas.cogentco.com (154.54.24.221)  126.578 ms be2112.ccr41.dca01.atlas.cogentco.com (154.54.7.157)  127.396 ms be2113.ccr42.dca01.atlas.cogentco.com (154.54.24.221)  126.557 ms
15  be2807.ccr42.jfk02.atlas.cogentco.com (154.54.40.109)  127.701 ms  335.427 ms  335.393 ms
16  be2317.ccr41.lon13.atlas.cogentco.com (154.54.30.186)  340.754 ms be2490.ccr42.lon13.atlas.cogentco.com (154.54.42.86)  340.685 ms  340.648 ms
17  be12488.ccr42.ams03.atlas.cogentco.com (130.117.51.42)  348.811 ms be12194.ccr41.ams03.atlas.cogentco.com (154.54.56.94)  340.580 ms  340.545 ms
18  be2815.ccr41.ham01.atlas.cogentco.com (154.54.38.206)  340.511 ms  340.476 ms be2816.ccr42.ham01.atlas.cogentco.com (154.54.38.210)  340.442 ms
19  be2484.ccr21.waw01.atlas.cogentco.com (130.117.51.105)  340.480 ms  340.446 ms  340.411 ms
20  149.6.70.30 (149.6.70.30)  340.375 ms netia.demarc.cogentco.com (149.6.70.50)  340.339 ms 149.6.70.66 (149.6.70.66)  340.227 ms
21  83.238.248.19 (83.238.248.19)  340.272 ms  2262.730 ms  2262.661 ms
22  * * *
23  warsf024rt01.inetia.pl (87.204.224.19)  2262.520 ms  2262.484 ms  2262.450 ms
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

这是 ping 的输出:

PING 89.171.107.238 (89.171.107.238) 56(84) bytes of data.
64 bytes from 89.171.107.238: icmp_seq=2 ttl=239 time=1026 ms
64 bytes from 89.171.107.238: icmp_seq=3 ttl=239 time=892 ms
64 bytes from 89.171.107.238: icmp_seq=5 ttl=239 time=352 ms
64 bytes from 89.171.107.238: icmp_seq=6 ttl=239 time=248 ms
64 bytes from 89.171.107.238: icmp_seq=8 ttl=239 time=418 ms
64 bytes from 89.171.107.238: icmp_seq=9 ttl=239 time=1018 ms
64 bytes from 89.171.107.238: icmp_seq=10 ttl=239 time=1005 ms
64 bytes from 89.171.107.238: icmp_seq=11 ttl=239 time=1043 ms
64 bytes from 89.171.107.238: icmp_seq=12 ttl=239 time=282 ms
64 bytes from 89.171.107.238: icmp_seq=13 ttl=239 time=1031 ms
64 bytes from 89.171.107.238: icmp_seq=14 ttl=239 time=368 ms
64 bytes from 89.171.107.238: icmp_seq=15 ttl=239 time=1017 ms
64 bytes from 89.171.107.238: icmp_seq=16 ttl=239 time=603 ms

答案1

您是否在远程服务器上运行 IDE?如果是,您应该预料到它会很慢。尝试通过网络安装源目录(例如 NFS、SSHFS 等众多选项,如果您只更改 1 或 2 个文件,甚至可以手动使用 scp)并在本地编辑源代码,仅使用远程服务器执行和测试。

相关内容