Last active
          July 3, 2020 12:31 
        
      - 
      
 - 
        
Save yfe404/8bebeff55c45e2f3eecfba372c910f6b to your computer and use it in GitHub Desktop.  
    Systemd service for ssh tunneling
  
        
  
    
      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
    
  
  
    
  | [Unit] | |
| Description="Establish a SSH tunnel to orion to map searx port to local 3337" | |
| After=sshd.service | |
| StartLimitIntervalSec=0 | |
| [Service] | |
| Type=simple | |
| Restart=Always | |
| RestartSec=1 | |
| User=yfe | |
| ExecStart=autossh -M 0 -L 3337:localhost:8888 yfe@orion -N | |
| [Install] | |
| WantedBy=multi-user.target | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment