Last active
          April 4, 2016 11:08 
        
      - 
      
- 
        Save erangaeb/42017b20302b864b6835c3b4d9aa7b6c to your computer and use it in GitHub Desktop. 
    SSH port forward to remote postgres container
  
        
  
    
      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
    
  
  
    
  | # example | |
| ssh -L localhost:8888:172.17.42.1:15534 [email protected] | |
| # 8888 : local listening port | |
| # 172.17.42.1 : container ip(docker host) | |
| # 15534 : container serving port | |
| # pagero : remote host username | |
| # 10.4.1.41 : remote host ip | |
| # localhost is potional | |
| ssh -L 8888:172.17.42.1:15534 [email protected] | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment