Everything You Wanted To Know About SSH

SSH’ing into your phone isn’t necessary. It’s just another perk that you can take advantage of after jailbreaking your iPhone. Putting it in simple words, SSH’ing into your iPhone means to allow access of every system file, directory, and log inside of your phone. The most obvious benefit as to why do this process is that you can transfer any type of file back and forth to your phone quickly, on your own terms without apple interfering in between. Well, one can do this through iTunes also, but a lot of us iPhone users don’t like syncing or the idea of opening iTunes all the time. Moreover, you cannot sync documents like .pdf, or .doc, etc. via iTunes. SSH gives you full control over file sharing and file management on your iPhone. Simple tasks like uploading some videos or a batch of pictures that you don’t want to sync to your actual Photos library on your phone, become easy and can be accessed through the iFile. For developers who like to make their own iPhone modifications and themes which is a big thing being a closed platform unlike android, this full access allows you to add the custom packages to Winterboard which was not possible earlier, without opening Cydia.

To enable SSH, following are the steps:

  1. Open Cydia and download and install OpenSSH, which is free.
  2. Once OpenSSH has installed, you’ll have to enable WiFi on your iPhone, and it should to be connected to the same WiFi network as your computer.
  3. Then you need to download and install an FTP client on your computer. To SSH into your iPhone with that FTP client, check out the screenshot below.

  1. The host field should be “192.168.1.1”, but could very easily be something like “192.168.1.2”, “192.168.1.3” and so on. If you have SBsettings installed, slide your status bar and towards the bottom, the wifi address has been given.
  2. That is the hostname you’ll need to use. The username will be “root”, and the default password is “alpine”. We strongly recommend changing your root SSH password for security purposes.

You now can begin to browse through your iPhone, through each directory. Be careful though, accidentally moving or deleting the wrong file could brick your phone. Blogtechnika will not be responsible if your device gets bricked while using Cydia and using OpenSSH. As i have mentioned earlier how to use open SSH, now we will be talking about the common directories that can be used to modify stuff on your phone. This is a very risky procedure so please do it only if you have enough knowledge about it. We would be covering the main directories. Please keep in mind that the words directory and folder are interchangeable here /var/mobile/Media – This directory holds your Photos from the Camera app, and your Voice Memos from the Voice Memos app. If you use Safari Download Manager, your downloaded files will be stored in this directory.

Photos:

Your photos will be located in /var/mobile/Media/DCIM/100APPLE. You may also see additional folders like 101APPLE, 102APPLE, etc please do not alter these folders and just concentrate on 100APPLE. You should never delete images directly from your 100APPLE folder as it can make your Camera app unstable and even might brick your phone.

Voice Notes:

Your voice notes will be located in: /var/mobile/Media/Recordings. You should not delete individual voice notes from the directory else you will be in big trouble. If you want to copy some voice memos, so you can keep them on your phone, while hiding them from the Voice Memos app, follow the directions as for the photos as i wrote in the earlier post. /var/mobile/Library – This directory holds Safari Bookmarks & the SBsettings toggles and themes.

Safari Bookmarks:

/var/mobile/Library/Safari -This is where the Safari bookmarks are stored.

SB Settings Themes:

/var/mobile/Library/SBsettings/Themes. This is where the SBsettings Themes are stored. Just as the Winterboard Themes folder, here you can upload custom themes and toggles for your SBsettings app.

Ringtones and Wallpapers:

/var/stash – this directory holds your default Ringtones, Wallpapers, and most importantly, Winterboard packages/hacks.

Winterboard Themes:

The Winterboard themes and tweaks will be located in /var/stash/Themes. The /Themes folder will actually be something like “/Themes.4x7hdh” instead of just plain “/Themes”, but that’s fine, no need to worry. This is the place where you can upload different Winterboard themes, tweaks, packages and whatever you want. You will still have to activate the stuff that you upload here in Winterboard for it to take effect on your phone.

I’ll probably add some more directories to this post in the future, but these ones should get you on the right path. It’s important to remember that you should only move or delete something if you’re sure you know what you are doing, and what the file or directory that you are modifying actually does. One wrong step and you’ll have to go to iTunes and restore your phone.

Note: Blogtechnika will not be responsible if your device gets bricked during the process.

Leave a Reply

Your email address will not be published. Required fields are marked *