     it 'the CORS headers are present'
   describe 'When I login to my box', ->
     it 'SSH works', (done) ->
-      cmd = "ssh testorg/newbox@#{host} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PreferredAuthentications=publickey 'exit 99'"
+      cmd = "ssh #{boxname}@#{host} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PreferredAuthentications=publickey -o LogLevel=ERROR -i #{sshkey_prv_path} 'exit 99'"
       exec cmd, (err, stdout_, stderr_) ->
-          console.log err
           err.code.should.equal 99
           done()
 

host = 'boxecutor-int-test-0.scraperwiki.net'
baseurl = "http://#{host}/"

cobalt_api_key = process.env.COBALT_API_KEY
boxname = 'cotest/' + String(Math.random()).replace(/\./,'')

describe 'Integration testing', ->
  describe 'When I use the http API', ->

        uri: "http://#{host}/#{boxname}/sshkeys"
        form:
          apikey: cobalt_api_key
          sshkey: fs.readFileSync sshkey_pub_path, "ascii"
      request.post options, (err, resp, body) ->
        should.not.exist err
        resp.should.have.status 200
