title: git push php and host key verification failed
body: <pre><code>$commitMessage = 'Auto commit from admin panel '.date('d.m.Y H:i:s', time());
  
  chdir(__DIR__.'/../../../..');
  $res[] = shell_exec('git add --all 2&gt;&amp;1');
  $res[] = shell_exec('git commit -a -m "'.$commitMessage.'" 2&gt;&amp;1');
  $res[] = shell_exec('git push origin master 2&gt;&amp;1');
  $res[] = shell_exec('git status 2&gt;&amp;1');
  </code></pre>
  
  <p>Output after git push command:
  <strong>Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.</strong> </p>
  
  <p>But before i run follow commands:</p>
  
  <pre><code>sudo -u www-data ssh-keygen -t rsa
  sudo chown www-data:www-data -R ~/.ssh/known_hosts
  sudo chown www-data:www-data -R /project
  </code></pre>
  
  <p>(where locate .git directory)</p>
  
  <p>After I add ssh key to bitbucket ssh keys (not for deploying).</p>