Failed to get reply to handshake packet

第一步 打开监听:
iPhone:~ root# debugserver -x backboard 192.168.1.101:1234 /var/mobile/Containers/Bundle/Application/2302E216-267D-4E78-806F-6DB264E3C7FE/WeChat.app/WeChat
debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-340.3.51.1
for arm64.
Listening to port 1234 for a connection from 192.168.1.101…
第二步 打开lldb:
/Applications/Xcode.app/Contents/Developer/usr/bin/lldbb
第三步 lldb连接 报了2个错
(lldb) process connect connect://192.168.1.101:1234
error: failed to get reply to handshake packet
error: rejecting incoming connection from 192.168.1.102 (expecting 192.168.1.101)

之前我按照这3步是可以成功连接的,今天不知道为啥这样了

重新插拔几次试试;另外试试USB连接,wifi连接的话实在是太慢了

ssh -p 2222 root@127.0.0.1
ssh_exchange_identification: Connection closed by remote host
USB我链接不了
重新插拔 ,这个应该和数据线没关系吧?

error: rejecting incoming connection from 192.168.1.102 (expecting 192.168.1.101)
192.168.1.101是iphone
192.168.1.102是电脑
这个是debugserver 报的错,这个应该是在提示错误的信息,但具体咋解决不知道了

通过brew来安装usbmuxd
brew install usbmuxd

端口映射:把iPhone的22端口(即SSH端口)映射到mac的2222端口
iproxy 2222 22

连接Mac本地的2222端口
ssh -p 2222 root@127.0.0.1

出现~ root# 就代表连接成功了,可以尝试用命令控制iPhone了.

可以遇到一些错误,比如:ssh_exchange_identification: Connection closed by remote host ,原因可能是你的Cydia 打不开了,需要打开Pangu软件重新越狱一下。
我就 是 报这个错ssh_exchange_identification: Connection closed by remote host

已解决 我重启了下电脑和手机
USB也可以连接手机了
大概原因我猜是连接方式交互使用 有点混乱!