This question already has an answer here:
The micro-USB port of my Xperia Arc with ICS it's broken. How can I enter to ADB by wireless, without connecting the cable? I am not root, and I need to enter to ADB to root my phone. I can connect to my phone from my PC by SSH. Or there's a another way to root it?