View Single Post
Old October 16th, 2009, 09:04 PM   #1 (permalink)
kam187
Senior Member
 
kam187's Avatar
 
Join Date: Aug 2009
Location: UK
Posts: 1,320
 
Device(s): Nexus One
Thanks: 3
Thanked 46 Times in 28 Posts
Default Putty to Galaxo over USB!

So I noticed galaxo is using a colour term profile which is really nice, except for us poor windows users

You could of course enable SSH, reboot, and turn wifi on and then ssh in using putty, but that's not really that convenient. Especially if you dont like to leave ssh running.

Instead you can run dropbear manually and redirect the port using adb, then putty in directly.

Anyway I just made 2 .bat files:

_SSH_ON.bat
adb forward tcp:9999 tcp:2222
adb shell "/system/xbin/dropbear -E -A -N root -U 0 -G 0 -C password -p 2222"

_SSH_OFF.bat
adb shell "kill `ps | grep dropbear | awk '{print $1}'`"

You can change 'password' to anything you like. The SSH_OFF just finds the dropbear pid and kills it.

After running SSH_ON just putty to 127.0.0.1 and port 9999, make sure to select ssh as the protocol. And hey presto a nice colour shell, and stuff like vim also works!
kam187 is offline  
Reply With Quote