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.

Is there an ssh server for Android (such as openssh for Ubuntu) that will allow me to access my device console via PuTTY?

share|improve this question

2 Answers 2

up vote 32 down vote accepted

Yes, there are a couple of options for this, including:

Some of these apps will require you to root your device. SSHDroid, QuickSSHD and SSHelper, at least, do not (there may be others as well). There are certainly multiple choices for you to investigate depending on your requirements/desired features/etc.

share|improve this answer
5  
Requiring or not requiring root is mostly a function of what port the server listens on: the traditional ssh port of 22 is privileged and so only available with root. Also, the userid of the shell you will get would be restricted to that of the application in a non-root installation. –  Chris Stratton Jun 1 '11 at 3:48
    
Do anything of these, or are there any others that don't show up in the applications list? –  druciferre Dec 25 '11 at 6:15
    
Here's what I could find by trying to look for definitely free (=libre) SSH servers for Android -- I searched at f-droid.org, where they consider free (libre) software for inclusion: vps.arachnoid.com/android/SSHelper under GPL (incorporating code from other projects), discussed at f-droid.org/forums/topic/sshelper . See also f-droid.org/forums/topic/droidsshd for the discussion of some other projects of SSH servers. –  imz -- Ivan Zakharyaschev Aug 15 '12 at 5:10
    
Unfortunately, from the Google market pages, it's often not clear what the license for the software is. I usually seek for free (= libre) software because I appreciate the ability for me and others to hack and imrpove the software. Could someone please help me determine whether there are free (libre) SSH servers? Whether the mentioned ones are free (libre) or not? –  imz -- Ivan Zakharyaschev Aug 15 '12 at 5:13
1  
It's a pity that SSHelper (mentioned above) requires Android 3.2, so it won't be compatible with the official OS of some devices (like mine Samsung Galaxy S, which has Android 2.2, upgradable to 2.3 offcially). –  imz -- Ivan Zakharyaschev Aug 15 '12 at 8:20

You can also use an SSH server without a frontend app -- starting it with a command or through a configuration file, as described in Howto: Connect to Device with SSH.

According to that page, CyanogenMod included an SSH server (dropbear) in some releases. ("Cyanogenmod 9.0 RC2 no longer includes Dropbear.") Or you could probably put it into your system yourself.

It seems that by default it is assumed that the server is run by root (i.e., you'd need root acces to your system), but it must be possible to set up it to work without root.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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