NOTE :- I am not going into depth of SSH Server-Client and all that networking stuff as my goal here is to access shell or terminal of android phone through windows PC.
This approach is very quick and may take less than 5 minute to access your android shell using your PC, so without wasting further lines here is the steps;
You will need
- Your Android phone ( Rooted and with Wi-Fi functionality )
- SSHDroid (SSH server)
- PuTTY.exe (SSH client)
- Install “SSHDroid” from android market to your phone this will turn your phone into a SSH server
- For the first time you need to set-up a password to log-in shell. Default password is admin which may you have to change on first time
- Download PuTTY.exe for SSH Client on your windows PC, it comes in single executable file so you don’t need to install that just double click on that and PuTTY will start.
- There is no need to setting up any thing in PuTTY.
- First step is to running Wi-Fi and connect your android phone to target PC, then run SSHDroid server into your mobile phone, but before that make sure under the SSHDroid’s application window click Options -> “Require WiFi” is checked as seen on above pic screen 2. And then click “start” option.
- Once SSH server is successfully started it will show IP address of your mobile phone in light sky color like this email@example.com as seen on screen 4.
- Take the IP “192.168.43.129” and type it to your PuTTY program’s (PC) host field and hit connect. Make sure port number is 22 as seen in second pic.
- It will ask for certification click ok and then command line log-in window will appear, type “root” hit enter and then type the password for root user, default is “admin” as i mentioned before. After successful log-in you will be able to use Linux commands like ls, reboot -f, mkdir, find, etc.
if your phone is connected to internet you can also use network commands like ping, wget, telnet etc.
Alternates in place of SSHDroid
Alternates in place of PuTTY
Where to go from here
There are many applications besides SSHDroid and Putty for Server and Client implementation respectively. But the most exciting thing is that, there are many tools like PuTTY and SSHDroid to do a lot fun with your android gadget like
- Access Linux shell remotely : PuTTY
- File Transfer remotely :
- Access Linux graphics on windows : Xming
- Customize your gadget by editing source code of your phone(Must be professional programmer for this)
- And my favorite one is to hack mobile phones by writing shell scripts and small C/C++ program for fun.