 
   # Connect via SSH and execute command
   _ssh: (key, command, callbacks) ->
+    @_wait_for_sshd()
     args = [
       '-o', 'LogLevel=ERROR', '-o', 'UserKnownHostsFile=/dev/null', '-o', 'StrictHostKeyChecking=no', '-i', key, "root@#{@ip_address}"]
     args = args.concat(command.split ' ')

    ssh.stdout.on 'data', callbacks.stdout
    ssh.stderr.on 'data', callbacks.stderr
    ssh.on 'exit', callbacks.exit

#
# Instance interface.
spawn         = require('child_process').spawn
net           = require 'net'

cf            = require 'config'
LithiumConfig = require('lithium_config').LithiumConfig
