Last active
          April 1, 2016 17:21 
        
      - 
      
- 
        Save erangaeb/42ddee05063b4b03daab15317e6184e7 to your computer and use it in GitHub Desktop. 
    SSH local port forwarding syntax
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | # command | |
| ssh -L <local-host>:<local-port> <container-ip>:<container-port> <username>@<remote-host> | |
| # -L : indicates, local portforwarding | |
| # <local-host> : local machine ip, its optionl(default localhost) | |
| # <local-port> : local port to listen | |
| # <container-ip> : container/service ip | |
| # <container-port> : container/service port | |
| # <username> : username of remote host | |
| # <remote-host> : remote host ip | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment