I want to set up a remote git pull using a bitbucket pipeline. Thinks I have tackled in the first place.
Now I am running into the problem, that when I command is finished. It is just throwing an error (but the command did work)
image: atlassian/default-image:latest
pipelines:
default:
- step:
deployment: staging
script:
- ssh xx@xxx -tt -p 7685 "ifconfig"
What did I do wrong :)? The pipeline is a connection to the remote host, so well that is working.
rpkamp
September 21, 2019, 12:02pm
2
The command on the remote server did not work though, it says ifconfig
not found.
Try with a command you know to work, like ls
.
rpkamp
September 21, 2019, 12:03pm
3
Also, I would recommend creating an SSH key without password to log in to the remote server, and then store that as a pipeline secret. Instead of using username/password to log in.
2 Likes
Hey @rpkamp this seem to fix it.
Did I use a password? I have a ssh key that I use to login on the remote server
system
Closed
December 24, 2019, 8:16pm
7
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.