<span>+ docker container run \</span>
<span>--volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \</span>
<span>--volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \</span>
<span>--volume=/usr/local/bin/docker:/usr/local/bin/docker:ro \</span>
<span>--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \</span>
<span>--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/scp-deploy:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/scp-deploy \</span>
<span>--workdir=$(pwd) \</span>
<span>--label=org.bitbucket.pipelines.system=true \</span>
<span>--env=BITBUCKET_STEP_TRIGGERER_UUID="$BITBUCKET_STEP_TRIGGERER_UUID" \</span>
<span>--env=BITBUCKET_REPO_FULL_NAME="$BITBUCKET_REPO_FULL_NAME" \</span>
<span>--env=BITBUCKET_GIT_HTTP_ORIGIN="$BITBUCKET_GIT_HTTP_ORIGIN" \</span>
<span>--env=BITBUCKET_PROJECT_UUID="$BITBUCKET_PROJECT_UUID" \</span>
<span>--env=BITBUCKET_REPO_IS_PRIVATE="$BITBUCKET_REPO_IS_PRIVATE" \</span>
<span>--env=BITBUCKET_WORKSPACE="$BITBUCKET_WORKSPACE" \</span>
<span>--env=BITBUCKET_DEPLOYMENT_ENVIRONMENT_UUID="$BITBUCKET_DEPLOYMENT_ENVIRONMENT_UUID" \</span>
<span>--env=BITBUCKET_SSH_KEY_FILE="$BITBUCKET_SSH_KEY_FILE" \</span>
<span>--env=BITBUCKET_REPO_OWNER_UUID="$BITBUCKET_REPO_OWNER_UUID" \</span>
<span>--env=BITBUCKET_BRANCH="$BITBUCKET_BRANCH" \</span>
<span>--env=BITBUCKET_REPO_UUID="$BITBUCKET_REPO_UUID" \</span>
<span>--env=BITBUCKET_PROJECT_KEY="$BITBUCKET_PROJECT_KEY" \</span>
<span>--env=BITBUCKET_DEPLOYMENT_ENVIRONMENT="$BITBUCKET_DEPLOYMENT_ENVIRONMENT" \</span>
<span>--env=BITBUCKET_REPO_SLUG="$BITBUCKET_REPO_SLUG" \</span>
<span>--env=CI="$CI" \</span>
<span>--env=BITBUCKET_REPO_OWNER="$BITBUCKET_REPO_OWNER" \</span>
<span>--env=BITBUCKET_STEP_RUN_NUMBER="$BITBUCKET_STEP_RUN_NUMBER" \</span>
<span>--env=BITBUCKET_BUILD_NUMBER="$BITBUCKET_BUILD_NUMBER" \</span>
<span>--env=BITBUCKET_GIT_SSH_ORIGIN="$BITBUCKET_GIT_SSH_ORIGIN" \</span>
<span>--env=BITBUCKET_PIPELINE_UUID="$BITBUCKET_PIPELINE_UUID" \</span>
<span>--env=BITBUCKET_COMMIT="$BITBUCKET_COMMIT" \</span>
<span>--env=BITBUCKET_CLONE_DIR="$BITBUCKET_CLONE_DIR" \</span>
<span>--env=PIPELINES_JWT_TOKEN="$PIPELINES_JWT_TOKEN" \</span>
<span>--env=BITBUCKET_STEP_UUID="$BITBUCKET_STEP_UUID" \</span>
<span>--env=BITBUCKET_DOCKER_HOST_INTERNAL="$BITBUCKET_DOCKER_HOST_INTERNAL" \</span>
<span>--env=DOCKER_HOST="tcp://host.docker.internal:2375" \</span>
<span>--env=BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes" \</span>
<span>--env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/scp-deploy" \</span>
<span>--env=LOCAL_PATH="html/*" \</span>
<span>--env=REMOTE_PATH="/var/www/html" \</span>
<span>--env=SERVER="$SERVER" \</span>
<span>--env=SSH_KEY="$SSH_KEY" \</span>
<span>--env=USER="$USER" \</span>
<span>--add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \</span>
<span>bitbucketpipelines/scp-deploy:0.3.3</span>
<span>Unable to find image 'bitbucketpipelines/scp-deploy:0.3.3' locally</span>
<span>0.3.3: Pulling from bitbucketpipelines/scp-deploy</span>
<span>c87736221ed0: Pulling fs layer</span>
<span>aca9d7420f98: Pulling fs layer</span>
<span>0f3ac11eee9e: Pulling fs layer</span>
<span>0f3ac11eee9e: Verifying Checksum</span>
<span>0f3ac11eee9e: Download complete</span>
<span>c87736221ed0: Verifying Checksum</span>
<span>c87736221ed0: Download complete</span>
<span>c87736221ed0: Pull complete</span>
<span>aca9d7420f98: Verifying Checksum</span>
<span>aca9d7420f98: Download complete</span>
<span>aca9d7420f98: Pull complete</span>
<span>0f3ac11eee9e: Pull complete</span>
<span>Digest: sha256:92cc16bb0a383f038bdc2443d0ea83dc390aa2f19beb0f56bf3c77ffff78ef41</span>
<span>Status: Downloaded newer image for bitbucketpipelines/scp-deploy:0.3.3</span>
<span>INFO: Starting SCP deployment to <a href="http://ec2-35-92-201-11.us-west-2.compute.amazonaws.com/" rel="noopener nofollow noreferrer" target="_blank">ec2-35-92-201-11.us-west-2.compute.amazonaws.com</a>:/var/www/html...</span>
<span>scp -rp -i /opt/atlassian/pipelines/agent/ssh/id_rsa_tmp <a href="https://bitbucket.org/spotter-technology/palo-alto-ex-dynamic-lists/src/fd4c467266ef19599cd14d51329cd6721387a41e/html/index.html" rel="noopener noreferrer" target="_blank">html/index.html</a> html/paloalto-whitelists <a href="mailto:ubuntu@ec2-35-92-201-11.us-west-2.compute.amazonaws.com" rel="noopener nofollow noreferrer" target="_blank">ubuntu@ec2-35-92-201-11.us-west-2.compute.amazonaws.com</a>:/var/www/html</span>
<span>Warning: Identity file /opt/atlassian/pipelines/agent/ssh/id_rsa_tmp not accessible: No such file or directory.</span>
<span>ssh: connect to host <a href="http://ec2-35-92-201-11.us-west-2.compute.amazonaws.com/" rel="noopener nofollow noreferrer" target="_blank">ec2-35-92-201-11.us-west-2.compute.amazonaws.com</a> port 22: Operation timed out</span>
<span>lost connection</span>
<span>✖ Deployment failed.</span>
Hi Sai,
I have executed a telnet connection test command against that remote URL on both port 22 and port 80 and both have failed, this would imply that there is some kind of firewall blocking incoming connections or that the URL is incorrect.
Please review the URL that you are attempting to connect to, and if it is correct - please proceed with whitelisting the IP addresses found in our firewall documentation below:
Hope this helps.
Cheers!
- Ben (Bitbucket Cloud Support)
It looks like you're new here. Sign in or register to get started.