All serious jailbreakers know that SSHing is an essential.
Here is a little walkthrough on how to install OpenSSH:
- Open Cydia and scroll down the main page to where it says “OpenSSH Access How-To.” Tap that option.
- On that page, click the blue linked text “Open SSH” in the first step. You’ll be presented with the OpenSSH package page. Click the install button in the top right corner, confirm when it’s finished, and return to Cydia.
- Open the Settings app from your home screen and go into your Wi-Fi settings. Click the little blue arrow next to the Wi-Fi network you’re currently connected to. Make a note of your IP address in the “IP Address” field (it should start with 10 or 192).
- To connect to your iOS device from your computer, use an SSH-capable application like Terminal on OS X or puTTy on Windows. Type
YOUR_IP_ADDRESSwith your actual IP address). When prompted, enter your password. It’s alpine by default. Once finished, you’re connected! You can also use an SFTP application like Cyberduck to connect as well, but that’ll limit your interactions to pretty much only file transfers.
- Lastly, you want to change your password. To do this, type the passwd command. You’ll be asked for a new password. Type it (nothing will show up for privacy reasons) and press enter. Type it in again to confirm it. Assuming you type your password correctly, you will be told it was changed successfully.
That’s it! Enjoy SSH’ing with your iOS device.
Make absolutely certain that you alter the password of the mobile account! As mentioned above, by default it is “alpine”, but until the root and the mobile account passwords are changed, your phone is at high risk!