In this guide you will see how to SSH into iPhone 4 on Mac installing OpenSSH on iPhone and then use a SSH client on Mac computer to access iPhone contents. Lets see how to SSH to iPhone 4 on Mac OS X. If you are Windows user see how to SSH into iPhone 4 on Windows.
How to SSH into iPhone on Mac
- First of all your iPhone must be Jailbroken (see how to jailbreak iPhone 4).
- Your iPhone and computer must be on same WiFi network.
To install OpenSSH, run Cydia from your iPhone.
Tap “Search” tab to search OpenSSH.
OpenSSH in the search box and tap the “OpenSSH”search result.
Tap “Install” > “Confirm” button to begin installation process.
After successful installation, tap big “Return to Cydia” button and close Cydia app by pressing iPhone “Home” button.
Find the IP address of your iPhone.
To find IP address of iPhone, tap “Settings” icon on iPhone and then “WiFi” option.
In-front of WiFi connection, tap blue arrow.
Here is the “IP address” of your iPhone, Note down this iPhone IP address.
Now on your Mac, Download CyberDuck application and run it.
Click “Open Connection” icon.
- Select “SFTP (SSH File Transfer Protocol)” option from first drop down.
- Enter iPhone IP address of your iPhone in “Server” text box (IP address that you have noted in step-7).
rootin “Username” box and
alpinein “Password” box.
- Press the “Connect” button, make sure your iPhone is not in Sleep mode.
Press “Allow” to access the iPhone.
This will open the directory of iPhone
/private/var/root. Use the drop down menu to navigate into the iPhone contents.
You must change your iPhone default user accounts password, by changing the default password no one can access your iPhone system files and folder, follow this link to change iPhone root user password.
See more iPhone guides