Home » Jailbreak

Install an SSH Server on iPhone

5 November 2009 No Comment

There have been various versions of SSh installed by the various jailbreaking tools on the iPhone, but as of this writing the stable SSh is provided by Cydia. when you run Cydia, you can find SSh on the main screen, or you can search for openSSh and install it.

the SSh server works only over a wi-Fi network. it probably would work over 3g, but usually the
network operator blocks incoming services and does not provide mobile phones with a public
iP address. usually the iPhone connects to a wi-Fi network and gets a dynamic (temporary) iP
address. to SSh into the phone, you’ll need to get a terminal program, and you’ll need to know your
iPhone’s iP address. You can find the iP address by going to Settings→general→network→wi-Fi
and then clicking the arrow next to the network you’re connected to. You’ll see DhCP selected in
blue, and your iP address.

If you find yourself connecting to your iPhone a lot, looking up the iP address all the time will
become annoying, so you may want to set a static (unchanging) iP address for connection to your
wi-Fi network. to do this, note down the information for your DhCP address, then go to the Static
tab and enter it all in, but set the last digit of the iP address to something that you can remember
(Figure 9-11). Your iPhone will remember this iP address and will use it whenever it connects to this
wi-Fi network again (i.e., at your home or work).

Whenever you use ssh to connect to your iphone, you’ll be required to enter a username and
firmware-specific password. although late-model firmware added a second user, mobile, the super-
user, root, has access to the entire filesystem and can change things more easily:

  • User name: root
  • password for firmware 1.0.2 and earlier: dottie
  • password for firmware 1.1.1 to 2.2: alpine

Once you have ssh installed and know your ip address, the next step is to get connected.

Similar Posts:

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.