Friday, December 4, 2009

Connecting to android via ssh over Wifi

Here is what I did and assuming your phone is rooted and you are using Galaxo or GalaxHero Rom.

[Disclaimer: Doing changes as root might be risky.  I'm not responsible should something go wrong.]

      1. Need the root password changed (Skip to item 7 if already done)
      2. Downloaded ConnectBot from the Market.
      3. Go to Galaxo+ app and choose Remount Filesystems: RW.
      4. Start ConnectBot and type su at the prompt.  There will be a popup window to allow or not.  Choose allow
      5. At the prompt type passwd to change the password and then prompted to reconfirm.
      6. Type exit to exit the app.
      7. Start up SSH Server from Galaxo Configuration app
      8. Start WiFi on android
      9. Use VNC app on your PC (download if you don't have it) and type your android ip address. On my android I have it set to a fixed Ip address and use the same default port  22.   Alternatively you can use ssh from command line if you use linux e.g   # ssh root@xxx.xxx.xxx.xxx   (replace x's with ip address). Note: When you do it first time you may be asked to add the new ssh generated key to your system.
      10. When the command shell window opens up enter root password.  That's it.
      Remember: As a root you could do a lot of damage if you are not sure what you are doing. So be warned.

      No comments:

      Post a Comment