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