iPhone 用USB连接SSH的时候一直报错

本文记录了一次使用SSH连接过程中遇到的连接被远程主机关闭的问题,最终发现原因是设备重启后未保持越狱状态,通过重新越狱解决了该问题。

报错信息如下

SH-dinghao:~ dinghao$ ssh root@localhost -p 5555
ssh_exchange_identification: Connection closed by remote host
复制代码
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 599, in process_request_thread
    self.finish_request(request, client_address)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 655, in __init__
    self.handle()
  File "/Users/dinghao/Code/USBSSH/tcprelay.py", line 82, in handle
    dsock = mux.connect(dev, self.server.rport)
  File "/Users/dinghao/Code/USBSSH/usbmux.py", line 235, in connect
    return connector.connect(device, port)
  File "/Users/dinghao/Code/USBSSH/usbmux.py", line 206, in connect
    raise MuxError("Connect failed: error %d"%ret)
MuxError: Connect failed: error 3

复制代码

####原因你敢信??? 因为手机重启之后不是越狱机啦 !!!哈哈哈哈哈哈,重新越狱搞定

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值