Advertisement
metalx1000

ssh to desktop from android through USB

May 29th, 2025
669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. # ssh to desktop from android through USB
  2. # plug the phone in to USB then run this on the desktop
  3. adb reverse tcp:2222 tcp:22
  4.  
  5. #Then you can run this on your Android device
  6. ssh your_username@0.0.0.0 -p 2222
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement