Since i've been doing some work on my phone at work i have not been able to SSH into it. Wifi is against company policy, so i had to think of something. After some research on the net i came accross a utitliy called iphone_tunnel. This application basically maps over a port to your local pc. So since SSH is running on port 22 it will map it over to your local pc and then you SSH into your local ip 127.0.0.1.
Note your phone needs to be jailbroken and have SSH running otherwise you cant SSH to your phone.
Let me explain a with more detail.
Step 1.
First go and grab the files neccesary here.
Step 2.
Go ahead and extract the content of the rar file.
Step 3
Start a dos command window and browse over to the directory where you extracted your rar file. In my case this is at c:\iphone then run this command "iphone_tunnel.exe 22 22" without the quotes. This will start the tunneling service.
Step 4.
Launch your client, we're usingn WinSCP found in out files section. In the host name enter ip 127.0.0.1 then click login and wait.
Step 5.
When it prompts you for the user name put in "root"
When it prompts you for password enter "alpine"
You should now be able to browse your iphone content.
source article