Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

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
add comment

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.

1 Answer

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: handlewithlinux.com/android-reverse-ssh –  barrymac Jun 24 '11 at 17:05
1  
@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 full.app.name where full.app.name is something like, for example, com.google.android.apps.maps 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
1  
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
add comment

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