so i want to tunnel an RDP connection through ssh using my iphone-4s. I already know how to tunnel this connection using putty(the ssh client). The only problem is i'm yet to find an SSH client for iOS that allows tunneling(or port forwarding). Please help me find an app that will do what i have described. I am almost positive this can be done with a jail-broken device but until iOS 7 is released, an untethered jailbreak for the iphone-4s is highly unlikely. Please give me the names of the jail-broken apps that can achieve this anyway. Thanks :]
migrated from stackoverflow.com Apr 9 '13 at 21:12
This question came from our site for professional and enthusiast programmers.
iSSH definitely works to create tunnels on a non-jailbroken iOS device, but you can still only keep it backgrounded for 10 minutes or so before it gets killed.
If you jailbreak, however, iSSH is just a luxury (I haven't found a client with a more useful keyboard) because you can just open a terminal and create a local tunnel from the command line all with just free stuff. There's something called AutoSSH in Cydia that is supposed to keep ssh sessions connected. It's not great, but there's not really anything else that does the job. That, combined with ShellScript Launcher, which lets you run scripts from SBSettings, will give you an easy way to start and kill your tunnel.
My StartTunnel script looks something like this:
and the KillTunnel script is simply..
I use 2X Client and connect to localhost on whatever port I pick for the tunnel. My only complaint there is that the Ctrl key never works for me. Most other free RDP clients either lack the extended keyboard or configurability of resolution/color depth/etc.
iSSH has this capability, and it's a good all-around tool besides; I prefer Prompt for a pure SSH client, but iSSH can't be beat for value.