Skip to content

Instantly share code, notes, and snippets.

@distante
Last active August 13, 2020 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save distante/3e83b3872a3aa4339359b1074396acb9 to your computer and use it in GitHub Desktop.
Save distante/3e83b3872a3aa4339359b1074396acb9 to your computer and use it in GitHub Desktop.
Setup adb for remote development with local devices

Kill old adb server on remote server.

devhost$ adb kill-server 

Activate adb server on local client

laptop$ adb start-server

Start ssh tunnel. Hide/minimize this window not to close it by accident!

laptop$ ssh -XC -R 5037:localhost:5037 <your devhost machine>

Should work by now with the local device connected to the laptop

devhost$ adb devices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment