Setup ssh proxy on iphone
This was built against a 1.1.4 firmware filesystem, but may be usable with other versions. The end result of all of the above is a corkscrew executable for the iPhone platform. $ arm-apple-darwin-gcc -Wl,-syslibroot,/usr/local/share/iphone-filesystem \
$ arm-apple-darwin-gcc -c -fsigned-char -Wall -Werror -O7 -c corkscrew.c Once that was in place, it was simply a case of unpacking corkscrew and compiling using the toolchain: However, corkscrew requires compiling for the target platform, so a cross-platform toolchain was compiled and installed based on instructions on the iphone-dev website. Since the O2 HTTP Proxy doesn't support SSH, the protocol has to be tunnelled over HTTP and this functionality is provided by a great program called corkscrew.
The 'final' challange comes from trying to get SSH working. This gave 'Internet' access, but appears to only support HTTP and even that has to go through a proxy, which requires some configuration on the iPhone, with changes required to /Library/Preferences/SystemConfiguration/ist and the creation of a proxy.pac file. This has become more accessible with packages such as O2's Web Bolt-on, currently priced at £7.50 a month for 200MB. Once on a PAYG network, the challenge was procuring Internet access at reasonable cost. This is compared to £269 + (18 month contract £35) = £899 when the phone was released in the UK. This made the phone much more attractive, since a sealed, 1st generation phone could be bought on eBay for around £280 (December 2007), unlocked and a PAYG SIM card inserted. With the rise of unlocked iPhones, there came the possibility of hooking the phone into the UK PAYG networks. Since the version of corkscrew used here is compiled using the non-Apple toolchain, you may require an unlocked iPhone, too. I haven't tried this workaround on the standard port (22), since I've always tended to run SSH on 443 in order to circumvent firewall rules. The main caveat here is that the target SSH server must be listening on port 443, typically reserved for HTTPS. However, the information here can be used for other networks (EDGE, 3G) and platforms, assuming a version of corkscrew is available for that platform. This article will concentrate on getting SSH working via O2's PAYG HTTP Proxy on the iPhone over GPRS. HOWTO: SSH via O2 PAYG HTTP Proxy on the iPhone By Richard Bland, Combined Effort Consulting.