title: SSH prompts password when deploying on remote server via Codeship
body: <p>I am struggling with connection to my server via SSH through Codeship. I followed their docs but I cannot get it work.</p>
  
  <p>So far I have completed all the steps to make it work but still no luck with it.</p>
  
  <p><strong>Codeship Project SSH public key</strong> - Added to my server's <strong>authorized_keys</strong> file</p>
  
  <p><a href="https://documentation.codeship.com/general/projects/project-ssh-key/" rel="nofollow noreferrer">https://documentation.codeship.com/general/projects/project-ssh-key/</a></p>
  
  <p><strong>Authenticating Via SSH Public Keys</strong> - changed the permissions for the ssh folder with <code>chmod -R go-rwx ~/.ssh/</code></p>
  
  <p><a href="https://documentation.codeship.com/basic/continuous-deployment/deployment-with-ftp-sftp-scp/#authenticating-via-ssh-public-keys" rel="nofollow noreferrer">https://documentation.codeship.com/basic/continuous-deployment/deployment-with-ftp-sftp-scp/#authenticating-via-ssh-public-keys</a></p>
  
  <p>Also I find out that other guys had the some problem:</p>
  
  <p><a href="https://community.codeship.com/t/what-is-password-for-ssh-access/995/6" rel="nofollow noreferrer">https://community.codeship.com/t/what-is-password-for-ssh-access/995/6</a></p>
  
  <p>... which btw I followed but still with no luck. I've run: </p>
  
  <pre><code>cat ~/.ssh/id_rsa.pub  
  </code></pre>
  
  <p>... to get my server public key and added it to my Personal Account Settings in Codeship.</p>
  
  <p>Finally I added this test command to my Custom Script in the project's <strong>Deploy</strong> section.</p>
  
  <pre><code>ssh user@domain.com 'mkdir test_folder'
  </code></pre>
  
  <p>So after I made some build with <code>git push</code> this is what I get i.e. the script is prompted with password enter:</p>
  
  <pre><code>Warning: Permanently added 'domain.com,XXX.XXX.XXX.XXX' (RSA) to the list of known hosts.
  user@domain.com's password:
  </code></pre>
  
  <p>Any idea what could be the problem, or what am I missing?</p>
  
  <p>Thanks!</p>