0
votes
1answer
95 views

Autossh ask for password when running with sudo (or from upstart)

I have an upstart job /etc/init/tunnel.conf: description "SSH Tunnel" start on (net-device-up IFACE=eth0) stop on runlevel[016] respawn exec autossh -nNT -o ServerAliveInterval=15 -R ...
1
vote
0answers
69 views

How to launch a SSH tunnel with upstart

I am not very used to sys admin and recently created an SSH tunnel between two servers (on Ubuntu 12.4) with the following command: ssh -fNg -L 3307:127.0.0.1:3306 tunneluser@xx.xx.xx.xx It worked, ...
-1
votes
2answers
331 views

Autossh error with upstart script: ssh exited prematurely with status 0 [closed]

I have set up the following upstart script on my raspbmc: # autossh description "autossh connections" start on started dbus stop on (runlevel [06] or stopped dbus) respawn respawn limit 5 60 # ...
0
votes
1answer
507 views

can't start ssh after upgrade ubuntu

When upgrading my system crashed, and now I can not start the service ssh root@elizium:/# stop ssh stop: Unknown job: ssh root@elizium:/# uname -a Linux elizium 2.6.24-19-server #1 SMP Wed Jun 18 ...
6
votes
1answer
3k views

Using Upstart to Manage AutoSSH Reverse Tunnel

I'm using upstart to manage a reverse SSH tunnel via autossh. When I do a "sudo start tunnel" the connection comes up just fine; however the command is not being automatically run when the networking ...