通过USB连接越狱iPhone,SSH进入设备

本文提供了一种通过USB连接已越狱的iPhone,并通过SSH安全地远程登录到设备的方法。教程分为四步:首先下载必要的工具,如usbmuxd;其次进入指定目录;接着设置端口转发;最后通过SSH连接到设备。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

通过USB连接越狱iPhone,SSH进入设备

通过USB连接越狱iPhone,SSH进入设备

第一步:下载需要的工具

usbmuxd软件,以下是可以使用的下载地址(2015-09-23)

第二步:进入指定目录

下载完成,进入python-client目录.

第三步:开始端口转发

 
 
zx:python-client zx$ tcprelay.py -t 22:2222

将本地的2222端口转发到远端22端口

第四步:SSH进入设备

 
x
 
zx:bin zx$ ssh  -p 2222 root@localhost
zxde-iPhone:~ root# ls
Library/  Media/  com.z2xy.zxtext_0.0.1-2_iphoneos-arm.deb
zxde-iPhone:~ root# rm com.z2xy.zxtext_0.0.1-2_iphoneos-arm.deb 
zxde-iPhone:~ root# ls
Library/  Media/

更多功能

在附带的readme中有更的使用方法,

  • you can forward any ports(转发到任意端口)

  • where the iPhone is the server, and the PC the client(PC作为客户端,iPhone作为服务端)

  • further,you can also add other ports,可以添加其他的转发端口,

    例如such as ./tcprelay.py -t 22:2222 5900 &

参考:

Using python

Tested on OS X and Windows.

You will need to have Python installed on your system.

  • Get usbmuxd source package and unpack. (Or if the linked usbmuxd package doesn't work, try libusbmuxd.)
  • Go into folder python-client
  • chmod +x tcprelay.py
  • Run ./tcprelay.py -t 22:2222

Now you can log into your device via ssh mobile@localhost -p 2222

The -t switch tells tcprelay to run threaded and allow more than one ssh over the same port.

See ./tcprelay.py --help for further options.

相关资料

undefined
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值