Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. root@ubuntu-phablet:/home/hablet# apt-get install openssh-server
  2. W: Not using locking for read only lock file /var/lib/dpkg/lock
  3. E: Unable to write to /var/cache/apt
  4. E: The package lists or status file could not be parsed or opened.
  5.  
  6. adb shell
  7.  
  8. su - phablet
  9.  
  10. echo | sudo tee /etc/init/ssh.override
  11.  
  12. echo "manual" | sudo tee /etc/init/ssh.override
  13.  
  14. adb shell android-gadget-service enable ssh
  15.  
  16. adb shell mkdir /home/phablet/.ssh
  17. adb push ~/.ssh/id_rsa.pub /home/phablet/.ssh/authorized_keys
  18. adb shell chown -R phablet.phablet /home/phablet/.ssh
  19. adb shell chmod 700 /home/phablet/.ssh
  20. adb shell chmod 600 /home/phablet/.ssh/authorized_keys
  21.  
  22. adb shell ip addr show wlan0|grep inet
  23. ssh phablet@<IP from above command>
  24.  
  25. touch /userdata/.writable_image
  26.  
  27. sudo setprop persist.service.ssh true
  28. mkdir -pm700 ~/.ssh
  29. ip addr
  30. nc -l -p 1234 > ~/.ssh/authorized_keys
  31.  
  32. nc 192.0.2.1 1234 < ~/.ssh/id_rsa.pub
  33.  
  34. ssh phablet@192.0.2.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement