我在桌面上使用 Windows 7。我试图通过 Wi-Fi 连接将我的 Android 连接到我的 PC。SSH 端口 22 在我的桌面上打开。我使用 Connectbot 连接到我的电脑。
ipconfig 的结果:
C:\Windows\system32>ipconfigWindows IP ConfigurationEthernet adapter Local Area Connection 3:
Connection-specific DNS Suffix . : domain.name
Link-local IPv6 Address . . . . . : fe80::286c:2b76:ae18:18f5%14
IPv4 Address. . . . . . . . . . . : 192.168.0.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : fe80::6e72:20ff:fe7d:1063%14192.168.0.1
Ethernet adapter Local Area Connection 3:
Media State . . . . . . . . . . . : Media disconnectedConnection-specific
DNS Suffix . :Ethernet adapter Local Area Connection:Connection-specific
DNS Suffix . :Link-local IPv6 Address . . . . . : fe80::79f7:d7d6:8a1f:4c13%11
IPv4 Address. . . . . . . . . . . : 192.168.42.25
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.42.129
C:\Windows\system32>
通过 ssh 从 connectbot:
Connecting to 192.168.0.2:
The authenticity of host 'lished.
Host EC key fingerprint is:6c:de:6c:f6:c0:78:2a
Key exchange was not finis
The server hostkey was not allback
Connection Lost
来自 android 的 Ping 结果:
app_30@android:/ $ ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
64 bytes from 192.168.0.2: icmp_seq=1 ttl=128 time=2.13 ms
64 bytes from 192.168.0.2: icmp_seq=2 ttl=128 time=1.46 ms
64 bytes from 192.168.0.2: icmp_seq=3 ttl=128 time=1.44 ms
64 bytes from 192.168.0.2: icmp_seq=4 ttl=128 time=1.45 ms
64 bytes from 192.168.0.2: icmp_seq=5 ttl=128 time=1.44 ms
64 bytes from 192.168.0.2: icmp_seq=6 ttl=128 time=1.49 ms
64 bytes from 192.168.0.2: icmp_seq=7 ttl=128 time=1.44 ms
64 bytes from 192.168.0.2: icmp_seq=8 ttl=128 time=1.43 ms
64 bytes from 192.168.0.2: icmp_seq=9 ttl=128 time=1.40 ms
64 bytes from 192.168.0.2: icmp_seq=10 ttl=128 time=1.37 ms