What is SSH?
SSH stands for Secure SHell.
It is just a protocol that allows you to access your iPhone or iPod Touch from your desktop PC or MAC and execute commands on it (thus allowing you to copy any kind of data to and from the iPhone or iPod Touch without iTunes). It’s also used for a lot of customization things if you know what you’re doing.
You can use a program like Cyberduck on MAC or WinSCP on Windows and you can browse your iPhone or iPod Touch like any other hard drive and explore it’s content (which can be very interesting).
In this tutorial, I’m going to show you how to SSH into iPhone using WinSCP.
NOTE: This guide requires your iPhone/ iPod Touch to be connected to a wireless network.
In order to SSH into your iPhone you need to Jailbreak iPhone first. Use one of the guide to jailbreak iPhone:
How to SSH into iPhone using WinSCP
Step 1 – Install OpenSSH
- Go to Cydia from your Springboard
- Go to Sections tab at the bottom of the screen.
- Under the Sections list, choose Networking.
- locate and Select OpenSSH from the list.
- Hit the Install button at the top right of the screen.
- Then hit the Confirm button
- After the installation is completed successfully, Press the big Return to Cydia button.
WARNING:
Now that you’ve installed OpenSSH now you’re vulnerable to external intruders with the default root password for SSH. Attacks on jailbroken iPhone with SSH installed with default password are increasing. So, we strongly recommend you to change your default root password used to SSH into iPhone before proceeding further. Follow the link below to change your SSH root password to Protect your iPhone/iPod Touch from intruders:
Change Root Password to Secure Your iPhone
Step 2 – Obtaining IP Address
Now you need to obtain the IP Address of your iPhone or iPod Touch.
- To obtain the IP address go to Settings.
- Under the Settings Menu, go to Wi-Fi.
- Make sure you’re connected to a wireless network. Press the Blue circled arrow button.
- There you will find your IP address. Please note that IP address.
Step 3 – SSH with WinSCP
Make sure your PC is on the same wireless network that of your iPhone.
Once you have downloaded, launch the WinSCP
Once WinSCP is opened, enter the following detailes:
- Host Name: IP Address of your iPhone/iPod
- Username: root
- Password: alpine
- Now hit the Login button.
ATTENTION: On an iPhone 3GS, you will need to change the File Protocol to SCP. The default is most likely SFTP. Just select the arrow next to the option and select SCP.
WinSCP will start connecting to your iPhone.
If a Warning dialogue box appears, click Yes
Finally, after a few second you’ll be logged into your iPhone using WinSCP.
You can access all your iPhone or iPod Touch folders from the right navigation pane. or use the drop down menu on the right side.
If you want to transfer a file from your PC to your iPhone, simply locate the file you want to copy from your PC using the left pane. Then navigate to the desired location on you iPhone using the right pane. Now to copy the file to your iPhone, just drag it from the left pane to the right pane.
Note: As user dlr stated, it is a good idea to set auto-lock to never. You can do this by going to Settings > General > Auto-Lock and set to never.