Skip to content

Instantly share code, notes, and snippets.

@yusufsyaifudin
Last active July 23, 2021 02:29

Revisions

  1. yusufsyaifudin renamed this gist Jul 23, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. yusufsyaifudin created this gist Jul 23, 2021.
    11 changes: 11 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # Useful script

    ## Tunnel Private Network to Local using SSH Tunneling

    ```bash
    ssh -L localhost:port:remote_ip:remote_port username@<IP that have access to remote_ip>
    ```

    * Ensure that you can SSH `ssh username@<IP that have access to remote_ip>` (public key already added in the instance)
    * Ensure that your SSH instance can access remote target, it can be db, http or etc