Hey Community !!
Im new in Bitbucket Pipelines, now want to setup a simple pipeline to deploy my code to the remote server. What I did:
- I dont have root permission on my remote server, and connecting with username@host
- Generated ssh-keys, added the .pub one to the repo "Access Keys"
- Generated ssh-key pairs in repository settings, and added the public one to my authorized keys
There are 2 issues Im facing right now:
- When trying to fetch the fingerprint of the remote host, getting "Unable to fetch fingerprints, check host SSH connection and try again". Here Im passing the IP address
- And my pipeline just does not work, this is probably because of 1)
And this is my .ym file:
pipelines:
default:
- step:
name: Deploy to production
deployment: production
script:
- echo "Deploying to staging environment"
- pipe: atlassian/ssh-run:0.2.2
variables:
SSH_USER: 'myuser'
SERVER: 'xx.yy.zz.qq'
COMMAND: touch /home/myuser/file.txt
Just trying to create a file in my home directory
Can you please help me to figure out what Im doing wrong here, and how can I fix the issue. I could not find any useful info to fix the issue
Thanks,
Arthur