Last active
January 24, 2025 22:10
-
-
Save lattice0/27c7d384cc4801161cc19662d1227070 to your computer and use it in GitHub Desktop.
reverse forward android studio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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