Skip to content

Instantly share code, notes, and snippets.

@lattice0
Last active January 24, 2025 22:10
Show Gist options
  • Save lattice0/27c7d384cc4801161cc19662d1227070 to your computer and use it in GitHub Desktop.
Save lattice0/27c7d384cc4801161cc19662d1227070 to your computer and use it in GitHub Desktop.
reverse forward android studio
# on the guest, always kill the adb server. If it's mac, it's located on ./Library/Android/sdk/platform-tools/adb
./Library/Android/sdk/platform-tools/adb kill-server
On the host, setup a reverse forward ssh:
ssh -R localhost:5037:localhost:5037 [email protected]
# Attention: on macOS setup SSH by seacrhing "remote login" then enable it, but dont forget to do ˋsudo nano /etc/ssh/sshd_configˋ
# and disable password authentication, enable public key authentication. Reboot. Copy host's public key
# to the VM by a shared folder, but on .ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment