SSH will work with mobile-WiFi ,here is steps:
Install “SSHDroid” from android market to your phone this will turn your phone into a SSH server.
(1) Setup SSHDroid
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.
you need to set up a password to log-in ssh. Default password is admin which may you have to change on first time
(2) Setup Putty
Once SSH server is successfully started it will show IP address of your mobile phone in light sky color like this
root@xxx.xxx.xxx.xxx,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.