连接后无法通过 SSH 向 GitHub 提交代码
xfoxfu opened this issue · 3 comments
xfoxfu commented
连接后无法通过 SSH 向 GitHub 提交代码,HTTPS 可行。
可能是 MTU 设置过大,或未妥善处理分包。
参考资料:https://stackoverflow.com/questions/24052623/ssh-connection-established-but-stuck
VRouter 版本
0.4.1
操作系统版本
macOS 10.13 (17A405)
VRouter 应用内, "系统"标签页的信息
系统信息
当前网关: 10.19.28.37
当前 DNS: 10.19.28.37
VRouter 信息
WAN: 192.168.199.118
BR-LAN: 10.19.28.37
Bridged Network: en0: Wi-Fi (AirPort)
Mac Address: hidden
Openwrt Version: 15.05.1
Shadowsocks Version: 3.1.0
ShadowsocksR Version: 2.5.6
Kcptun Version: 20170904
进程状态
转发 DNS 查询: 运行中
转发 UDP 流量: 运行中
Shadowsocks 进程: 运行中
ShadowsocksR 进程: 未启用
Kcptun 进程: 未启用
暂停 VRouter 后, 以下命令(可一起执行)的执行结果
Server: 192.168.199.1
Address: 192.168.199.1#53
Non-authoritative answer:
Name: qq.com
Address: 61.135.157.156
Name: qq.com
Address: 125.39.240.113
route to: default
destination: default
mask: default
gateway: 192.168.199.1
interface: en0
flags: <UP,GATEWAY,DONE,STATIC,PRCLONING>
recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
0 0 0 0 0 0 1500 0
2017-10-18T18:48:25+08:00 - debug: about to trafficToPhysicalRouter
2017-10-18T18:48:34+08:00 - debug: about to connect to openwrt via ssh
2017-10-18T18:48:34+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,en2: Thunderbolt 2,p2p0,awdl0,bridge0
2017-10-18T18:48:34+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-18T18:48:35+08:00 - info: action off
2017-10-18T18:48:35+08:00 - debug: about to trafficToVirtualRouter
2017-10-18T20:35:46+08:00 - debug: about to connect to openwrt via ssh
2017-10-18T20:35:46+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-18T20:35:46+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-18T22:57:29+08:00 - debug: about to connect to openwrt via ssh
2017-10-18T22:57:29+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,en2: Thunderbolt 2,p2p0,awdl0,bridge0
2017-10-18T22:57:29+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-18T22:57:29+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2017-10-18T22:57:29+08:00 - info: action off
2017-10-18T22:57:29+08:00 - debug: about to trafficToVirtualRouter
2017-10-18T22:57:30+08:00 - info: action off
2017-10-18T22:57:30+08:00 - debug: about to trafficToVirtualRouter
2017-10-19T00:06:16+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T00:06:16+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-19T00:06:16+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T12:20:37+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T12:20:37+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,en2: Thunderbolt 2,p2p0,awdl0,bridge0
2017-10-19T12:20:37+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T12:20:37+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2017-10-19T12:20:37+08:00 - info: action off
2017-10-19T12:20:37+08:00 - debug: about to trafficToVirtualRouter
2017-10-19T18:17:09+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T18:17:10+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,en2: Thunderbolt 2,p2p0,awdl0,bridge0
2017-10-19T18:17:10+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T18:17:10+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2017-10-19T18:17:10+08:00 - info: action off
2017-10-19T18:17:10+08:00 - debug: about to trafficToVirtualRouter
2017-10-19T21:00:36+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T21:00:36+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-19T21:00:36+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T21:15:37+08:00 - debug: refreshInfos every 15 minutes
2017-10-19T21:15:37+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-19T21:15:37+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T21:17:04+08:00 - info: action off
2017-10-19T21:17:04+08:00 - debug: about to trafficToPhysicalRouter
2017-10-19T23:21:05+08:00 - info: action off
2017-10-19T23:21:05+08:00 - debug: about to trafficToVirtualRouter
2017-10-19T23:29:52+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T23:29:52+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-19T23:29:52+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T23:30:29+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T23:30:29+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-19T23:30:29+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T23:32:21+08:00 - info: action off
2017-10-19T23:32:21+08:00 - debug: about to trafficToPhysicalRouter
启用 VRouter 后, 以下命令(可一起执行)的执行结果
Server: 10.19.28.37
Address: 10.19.28.37#53
Non-authoritative answer:
Name: qq.com
Address: 61.135.157.156
Name: qq.com
Address: 125.39.240.113
route to: default
destination: default
mask: default
gateway: 10.19.28.37
interface: vboxnet0
flags: <UP,GATEWAY,DONE,STATIC,PRCLONING>
recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
0 0 0 0 0 0 1500 0
2017-10-18T18:48:34+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,en2: Thunderbolt 2,p2p0,awdl0,bridge0
2017-10-18T18:48:34+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-18T18:48:35+08:00 - info: action off
2017-10-18T18:48:35+08:00 - debug: about to trafficToVirtualRouter
2017-10-18T20:35:46+08:00 - debug: about to connect to openwrt via ssh
2017-10-18T20:35:46+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-18T20:35:46+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-18T22:57:29+08:00 - debug: about to connect to openwrt via ssh
2017-10-18T22:57:29+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,en2: Thunderbolt 2,p2p0,awdl0,bridge0
2017-10-18T22:57:29+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-18T22:57:29+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2017-10-18T22:57:29+08:00 - info: action off
2017-10-18T22:57:29+08:00 - debug: about to trafficToVirtualRouter
2017-10-18T22:57:30+08:00 - info: action off
2017-10-18T22:57:30+08:00 - debug: about to trafficToVirtualRouter
2017-10-19T00:06:16+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T00:06:16+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-19T00:06:16+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T12:20:37+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T12:20:37+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,en2: Thunderbolt 2,p2p0,awdl0,bridge0
2017-10-19T12:20:37+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T12:20:37+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2017-10-19T12:20:37+08:00 - info: action off
2017-10-19T12:20:37+08:00 - debug: about to trafficToVirtualRouter
2017-10-19T18:17:09+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T18:17:10+08:00 - info: Get all bridgeServices: en0: Wi-Fi (AirPort),en1: Thunderbolt 1,en2: Thunderbolt 2,p2p0,awdl0,bridge0
2017-10-19T18:17:10+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T18:17:10+08:00 - info: currentGWIP/currentDnsIP not match, correct them to 10.19.28.37
2017-10-19T18:17:10+08:00 - info: action off
2017-10-19T18:17:10+08:00 - debug: about to trafficToVirtualRouter
2017-10-19T21:00:36+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T21:00:36+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-19T21:00:36+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T21:15:37+08:00 - debug: refreshInfos every 15 minutes
2017-10-19T21:15:37+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-19T21:15:37+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T21:17:04+08:00 - info: action off
2017-10-19T21:17:04+08:00 - debug: about to trafficToPhysicalRouter
2017-10-19T23:21:05+08:00 - info: action off
2017-10-19T23:21:05+08:00 - debug: about to trafficToVirtualRouter
2017-10-19T23:29:52+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T23:29:52+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-19T23:29:52+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T23:30:29+08:00 - debug: about to connect to openwrt via ssh
2017-10-19T23:30:29+08:00 - info: Get all bridgeServices: en1: Thunderbolt 1,en2: Thunderbolt 2,en0: Wi-Fi (AirPort),p2p0,awdl0,bridge0
2017-10-19T23:30:29+08:00 - info: Get current actived bridge service: en0: Wi-Fi (AirPort)
2017-10-19T23:32:21+08:00 - info: action off
2017-10-19T23:32:21+08:00 - debug: about to trafficToPhysicalRouter
2017-10-19T23:33:00+08:00 - info: action off
2017-10-19T23:33:00+08:00 - debug: about to trafficToVirtualRouter
overcache commented
应该跟 mtu 关系不大, 我一直用 ssh 提交代码,未见异常。
关掉 vrouter 可以提交吗?
xfoxfu commented
是的,可以。
overcache commented
网络复杂,影响连接的因素很多。
这个问题我暂时无法复现, 等待更多反馈吧