0

I would like to execute commands on my laptop from my phone over a usb, I found from this answer that I should use adb reverse, and it worked perfectly. Now I want adb reverse tcp:8080 tcp:22 to run on it's own when I plug in my phone. For that, I referred to this and this.

I made a file in /etc/udev/rules.d/ called 85-start_ssh.rules. I made a script called start_ssh_over_usb.sh and gave it execution rights. The rules file contains this-

ACTION=="add", ATTRS{idVendor}=="2a70", ATTRS{idProduct}=="4ee7", RUN+="/path/to/my/file/start_ssh_over_usb.sh"

I got my phone's vendor id and product id with lsusb. After restarting, this still didn't seem to work. Any help?

0 Answers0