I need a SSH tunnel on my IPhone, so I can access my devices at home (for example dreaMote to access the dreambox).

The easiest way I found to do this, was by using MobileTerminal. I just added a new menu entry, which points to a script:

Add menu entry to MobileTerminal:

Execute the script:

The simple script:

1
2
3
iPhone:~ root# cat /private/var/myscript
#!/bin/bash
ssh user@your_server.org -L 5000:192.168.111.24:80

Now you can exit MobileTerminal (press the home button) - the SSH tunnel still exists!