Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

in order to have a permanet ssh tunnel running I set up the following upstart job in /etc/init/ssh-tunnel.conf:

# ssh tunnel - simple personal ssh tunnel 
description "simple personal ssh tunnel"
author "My Name <My email>"

start on runlevel [2345]
stop on runlevel [01S6]

respawn
respawn limit 5 60

# Start the process
exec ssh -CND PORT USER@ADDRESS -i MY_KEY -o BatchMode=yes

When the job is running I am not able anymore to shutdown or reboot from lightdm.

Than you in advance for your help.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.