Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. # File: /etc/init/autossh.conf
  2. # Start ssh tunnel after network for specified user
  3.  
  4. start on (local-filesystems and net-device-up)
  5. stop on runlevel [016]
  6.  
  7. respawn
  8. respawn limit 5 60
  9. exec autossh -M 0 -N -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -o "StrictHostKeyChecking=no" -o "BatchMode=yes" -i /home/user/.ssh/id_rsa -R 5522:localhost:22 remoteuser@middleserver.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement