Guest User

Untitled

a guest
Jan 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. [Unit]
  2. Description=Keeps a tunnel to 'remote.example.com' open
  3. After=network.target
  4.  
  5. [Service]
  6. User=autossh
  7. # -p [PORT]
  8. # -l [user]
  9. # -M 0 --> no monitoring
  10. # -N Just open the connection and do nothing (not interactive)
  11. # LOCALPORT:IP_ON_EXAMPLE_COM:PORT_ON_EXAMPLE_COM
  12. #AUTOSSH_GATETIME
  13. ExecStart=/usr/bin/autossh -M 0 -N -q -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -p 22 -l autossh remote.example.com -L 7474:127.0.0.1:7474 -i /home/autossh/.ssh/id_rsa
  14.  
  15. [Install]
  16. WantedBy=multi-user.target
Add Comment
Please, Sign In to add comment