title: nodejs pm2 Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive)
body: <p>I'm new to NodeJS development.</p>
  
  <p>I've set up Ubuntu 14.04 as a guest OS through VirtualBox on a host Windows machine.  When I type into Ubuntu <code>ifconfig</code>, I get the ip address <code>192.168.8.101</code>.  I also added an entry to my Windows host file so that <code>jl.gamatrix.com</code> points to that address.  I checked out a git project onto the ubuntu machine, set up node js and pm2 and nginx.</p>
  
  <p>When I type</p>
  
  <p><code>pm2 deploy ecosystem.json5 jlgamatrix</code></p>
  
  <p>I get the output</p>
  
  <pre><code>{
  --&gt; Deploying to jlgamatrix environment
  --&gt; on host jl.gamatrix.com
  fatal: No upstream configured for branch 'master'
    ○ deploying origin/master
    ○ executing pre-deploy-local
    ○ hook pre-deploy
    ○ fetching updates
  Warning: Permanently added the RSA host key for IP address '125.211.213.131' to the list of known hosts.
  Password:
  Password:
  Password:
  Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive).
  
    fetch failed
  </code></pre>
  
  <p>Where each time it asked for a password, I entered in the correct password.  Why do I keep getting a permission denied?  Especially since <code>git pull origin master</code> and <code>git push origin master</code> on their own via bash don't experience any issues?</p>
  
  <p>Here's what my <code>ecosystem.json5</code> file looks like:</p>
  
  <pre><code>  apps : [
  
      // First application
      {
        name      : "gamatrix",
        script    : "/usr/local/bin/grunt",
        env: {
          COMMON_VARIABLE: "true"
        },
        env_production : {
          NODE_ENV: "production"
        }
      },
  
    ],
  
    deploy : {
      production : {
        user : "emd",
        host : "someserver.com",
        ref  : "origin/master",
        repo : "bb_gamatrix_deploy:emd/meanjs-gamatrix.git",
        path : "/home/emd/gamatrix-prod/",
        "post-deploy" : "npm install &amp;&amp; bower install &amp;&amp; pm2 startOrRestart ecosystem.json5 --env production"
      },
      jlgamatrix : {
        user : "www-data",
        host : "jl.gamatrix.com",
        ref  : "origin/master",
        repo : "bb_gamatrix_deploy:eemd/meanjs-gamatrix.git",
        path : "/var/www/nginx/gamatrix",
        "post-deploy" : "npm install &amp;&amp; bower install &amp;&amp; pm2 startOrRestart ecosystem.json5 --env dev",
        env  : {
          NODE_ENV: "jlgamatrix"
        }
      }
  
    }
  }
  </code></pre>