Continuing the discussion from 通过USB连接线ssh到iOS中:
按照课本的操作来的,然后chmod +x了下,然后。。
直接贴错误报告:
Cyan-MBP:~ Cyan$ /Users/Cyan/Tools/USB_SSH/tcprelay.py -t 22:2222
Forwarding local port 2222 to remote port 22
Traceback (most recent call last):
File "/Users/Cyan/Tools/USB_SSH/tcprelay.py", line 135, in <module>
server = serverclass((HOST, lport), TCPRelay)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 419, in __init__
self.server_bind()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 430, in server_bind
self.socket.bind(self.server_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 49] Can't assign requested address
是我Mac上的Python版本不对吗?
Cyan-MBP:~ Cyan$ python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)