Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had my iPhone jailbroken and used MobileTerminal all the time. But I just wanted to go back to normal, and I have an app now that allows me to SSH to other computers.

Is there a way to SSH to my phone? I have its IP.

share|improve this question
up vote 1 down vote accepted

SSH server won't start without jailbreaking it.

You could probably use an app you developed or that you can run using a developer license, which will start the SSH on a port you want (pretending to test it).

share|improve this answer
do you know where I could find the code to do that? Honestly, I don't know much C#... – JShoe Jul 31 '11 at 19:57
you could try packaging the application and start the server . There are few apps which start listening on port > 1024 to act as a server when communicating with Mac (like 1Password when its in sync mode) , you could try similarly. I am not a Obj C programmer myself. – Sairam Jul 31 '11 at 21:08

TL;DR You can't.

In order to be able to connect to the (or any, for that matter) phone via SSH, it needs to run an SSH server that listens for connections. Although the iPhone theoretically can, Apple does not ship an SSH server by default (or at least doesn't enable it, not too sure).

This is why you need to jailbreak the phone and install your own SSH server.

Also see this Stack Overflow question:

How to read iPhone files without jailbreaking?

I'd like to access files in an iPhone, such as using remotely connecting via ssh and telnet. But it appears that the iPhone's ssh or telnet are not supported. I can ping it, but cannot use telnet or ssh.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .