Skip to content

Instantly share code, notes, and snippets.

@lenconda
Created January 9, 2019 05:25
Show Gist options
  • Save lenconda/714488ad33a1afa6b4731d07f04cf617 to your computer and use it in GitHub Desktop.
Save lenconda/714488ad33a1afa6b4731d07f04cf617 to your computer and use it in GitHub Desktop.
通过SSH端口转发将远程MySQL服务器映射到本地
IP=SERVER_ADDRESS
# LOCAL_PORT:IP:SERVER_PORT
ssh -fNg -L 3306:IP:3306 root@IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment