Connect your device via USB, enable Developer Mode in:

“System-Settings->About This Phone->Developer Mode”

…and run (from your PC, make sure to have the phone screen unlocked, else adb will refuse to let you in):

adb shell android-gadget-service enable ssh

Copy your public key to the Phone:

adb shell mkdir /home/phablet/.ssh
adb push ~/.ssh/id_rsa.pub 
/home/phablet/.ssh/authorized_keys
adb shell chown -R phablet.phablet /home/phablet/.ssh
adb shell chmod 700 /home/phablet/.ssh

adb shell chmod 600 /home/phablet/.ssh/authorized_keys

Now you can look up your IP on the phone and use ssh to connect:
adb shell ip addr show wlan0|grep inet
ssh phablet@<IP from above command>
 

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from a day in the life of wayne ward....

Subscribe now to keep reading and get access to the full archive.

Continue reading