Jailbreak iPhone OpenSSH Guide

iPhone Jailbreak SSH Connection
The iPhone Jailbreak gives you full access to the iPhone file system. In order to take full advantage of your Jailbreak you must use OpenSSH. I use this to install cracked jailbreak apps and modify themes on my iPhone. We’ll go over that and more later. Right now I am going to give you a quick walkthrough of OpenSSH installation, use and tips.

 

  1. Jailbreak your iPhone
    How to Jailbreak your iPhone
  2. Install OpenSSH
    First go to Cydia, search for OpenSSH and install it. OpenSSH is also located in the Featured Packages and Sections > Networking.

  3. Connect your iPhone to the wireless network. Even if you are already connected, you will still need to go into the WiFi settings to get your iPhone’s local IP address. Go to Settings > WiFi now tap on the blue arrow next to your wireless router. This will display your phone’s IP address, for example 192.168.1.140 as in the picture below.
  4. iPhone Wifi Connection Menu iPhone Wifi Settings
  5. Disable Auto-lock
    Go to Settings > general > Auto-lock and disable auto-lock. This is important because if your phone auto-locks then WiFi is disabled and you’ll get disconnected from SSH.
  6. iPhone Autolock

  7. Install a Windows SSH client application
    Now that OpenSSH is installed on the iPhone and the settings and IP are correct, you will need to install the software necessary to connect from your PC. I personally recommend WinSCP as the installation is simple, and the file transfers are easy. Make sure your desktop is connected to the same network as your iPhone (it doesn’t have to be on WiFi. Just connected to the same router!).
  8. Download WinSCP Here

  9. Configure the SSH client application
  10. Open WinSCP and Click New.
    iPhone SSH Setup

    In the Host text box, enter your iPhone’s IP address from step 3. Leave the port number as 22. In the Username text box, enter root. In the password text box enter alpine. Click Save.
    iPhone SSH Connection

    Enter a name for this connection and check the save password check box.
    iPhone SSH Guide

  11. Connect to your device (now the magic happens)
  12. Now select the saved connection we just created and click Login. You should now get a connecting window, and then WinSCP should begin populating the phones file system. Be aware that you may not be able to use the saved connection next time you try to use SSH as the phones IP address may change.

    iPhone OpenSSH
    You now have access to the phone’s file system.

  13. O.k. you are in
  14. iPhone OpenSSH Connected

Now what?
You will now be ready to transfer files over for your projects. You can now move your cycorder videos off of your phone, add new SMS tones, change winterboard themes, and install cracked jailbreak apps. This will be helpful for many jailbreaking projects and will help you gain a better understanding of the file structure of your iPhone.

For some popular SSH hacks, you will require these directories:
Cycorder:
/var/mobile/Media/Videos
Ringtones:
/private/var/stash/Ringtones.Evvwhv
SMS tones:
/System/Library/Audio/UISounds
Themes:
/private/var/stash/Themes
Apps:
/private/var/stash/Applications.5DjZ5y

Tips
A few tips for using OpenSSH with your iphone:
Get SBSettings from Cydia (it’s on my Best Jailbreak Apps list, why don’t you have it)
Use SBSettings to disable SSH when not in use, it will drain battery.
Use SBSettings to keep wifi awake by using the KeepAwake toggle.
You can also get your ip address with SBSettings (god it sounds like a great app huh? GET IT)
I suggesting changing the password for SSH(Insert guide here).
It enables it at startup so get used to disabling ssh every time you reboot phone.