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

I'd like to be able to push PDF files onto a phone/tablet with a Bash script. Is it possible to transfer data using scp (or even rsync) from a Linux computer to an Android phone over wireless?

Could I even run Unison on the phone?

And is it possible to run Bash (or only POSIX Shell) scripts on the phone remotely?

share|improve this question
up vote 4 down vote accepted

Many things are possible. Installing an SSH Server app (e.g. SSHHelper or DigiSSHD / SSH Server - Android Apps on Google Play) would give you the possibility to login via ssh, or remote-copy via scp.

Terminal IDE gives you a quite complete package, even including the famous Midnight Commander, and a lot more useful tools:

javac, java, dx, proguard, aapt, apkbuilder, signer, ssh, sshd, telnetd, bash 4.2, busybox 1.19.2, vim 7.3, nano 2.2.6, midnight commander 4.8, htop 1.0, TMUX 1.5, rsync 3.0.8, git 1.7.8, BitchX 1.1 and a nice terminal emulator are all available.

(emphasis are introduced by me to pick the items your question was for)

So except for Unison, the latter package should cover your needs :)

share|improve this answer
Vim, htop and git are also very nice. Thanks! – Martin Ueding Jan 20 '13 at 9:19
Yepp, exactly! Side-effect is: you get a complete development environment on your Android :) But it will make up a couple of MB, naturally... – Izzy Jan 20 '13 at 11:03

For your first question. I use the OASVN Android client to pull PDF files to my droid from my private Windows based SVN server. Works Great!! I used rsync before and would favored the SVN solution over rsync. NetApp's FX File Manager Plus handles the SFTP protocol over wireless and will cost you $2 for a license.

share|improve this answer
I took the freedom to add a link to OASVN. Not sure for FX -- do you mean File Explorer (Plus Add-On)? – Izzy Apr 8 '13 at 23:10
It would be nice to have a concrete example using rsync here (as it is available via Terminal IDE) – Marius Hofert Nov 11 '13 at 21:19

Your Answer


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.