Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. 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

This question already has an answer here:

I'd like to do reverse ssh tunneling with my phone. Anyone know how I can run connectbot as root so that it can bind to port 22 ?

share|improve this question

marked as duplicate by Izzy, Bryan Denny Feb 6 '13 at 17:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You can't run apps that don't request root permissions as root. This is excluding native apps that you can run from a terminal.

share|improve this answer
hmm this sounds strange. Put another way, how can I run an app from the shell? I can su in the shell and then run commands as root. I want to do this: – barrymac Jun 24 '11 at 17:05
@barrymac That guide is pretty old and short on details. It doesn't seem like it requires ConnectBot to have root, though. To run a regular Android app from the shell I believe you do am start -n where is something like, for example, for Google Maps. – Matthew Read Jun 24 '11 at 17:18
Note that it will run am as root, but the app that is started won't have root unless it requests root. – Matthew Read Jun 24 '11 at 17:20
Yes you're right. I actually got this to work by running quicksshd on a high port and forwarded to that port. So I can finally log on to my phone over ssh from anywhere! Now, why did I want to do this again? :-) – barrymac Jun 24 '11 at 17:34
I should also mention that I still used connectbot to log into the remote server and create the tunnel! – barrymac Jun 27 '11 at 9:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.