July 4, 2009

Getting SCP working on Android

I wanted scp ... Care of an app called ConnectBot I've got ssh, but what I really wanted was the ability to securely move files onto my G1, from my G1, and perhaps off.  Granted I could plug in the USB cable, but I don't always have a cable on me and I'm not always in the same building as the computer containing the file. 

Requirements:  G1 phone (duh!) running any rootable version of Android,  Terminal Emulator and ConnectBot apps installed. It turn out that the only thing missing from being able to run the scp command is a copy of the ssh binary in /system/usr/bin.   Using the following command sequence you can be up and scp'ing in no time, no reboot required.

 $ su <-- gotta be root

# mount -o rw,remount /system

# cd /system/usr/bin

# ln -s /system/usr/xbin/ssh ssh

# mount -o ro,remount /system

$ exit

Voila.  You now can now scp files from or too, any system you have an account on, just as you would with your Linux desktop.  

Click Here!