title: autossh quits because ssh (dropbear) can't resolve host
body: <p>I run autossh on a system which might have internet connectivity or might not. I don't really know when it has a connection but if so I want autossh to establish a ssh tunnel by:</p>
  
  <pre><code>autossh -M 2000 -i /etc/dropbear/id_rsa -R 5022:localhost:22 -R user@host.name -p 6022 -N
  </code></pre>
  
  <p>After several seconds it throws:</p>
  
  <pre><code>/usr/bin/ssh: Exited: Error resolving 'host.name' port '6022'. Name or service not known
  </code></pre>
  
  <p>And thats it. Isn't autossh meant to keep the <code>ssh</code> process running no matter what? Do I really have to check for a connection by <code>ping</code> or so?</p>