Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,004
Community Members
 
Community Events
165
Community Groups

Bitbucket fatal: Can't access remote

I tried to set up sftp connection between Bitbucket and Runcloud server. Runcloud only uses sftp connection. Bitbucket config:

image: php:7.3

pipelines:
 branches:
   master:
     - step:
         name: Deploy to production
         deployment: production
         script:
           - apt-get update
           - apt-get -qq install git-ftp
           - git ftp init --user $SFTP_username --passwd $FTP_password sftp://runcloud@1.111.111.11/home/runcloud/webapps/mywebsite/wp-content/themes/mywebsiteTheme

Connection always fails with error fatal: Can't access remote 'sftp://1.111.111.11', exiting...

I tried a different sftp Path combination but the result always the same. sftp://1.111.111.11/home/runcloud/webapps/mywebsite/wp-content/themes/mywebsiteTheme sftp://mywebsite/home/runcloud/webapps/mywebsite/wp-content/themes/mywebsiteTheme

My website Root Path: /home/runcloud/webapps/mywebsite Public Path: /home/runcloud/webapps/mywebsite

Runcload have different as "normal" set up for ftp. For example to conect with FileZila HOST is my server ip. And to get to my website i have to navigate /webapps/mywebsite enter image description here

Not sure what I doing wrong is my sftp path incorrect?

2 answers

I think you should use the --insecure parameter.

 

git ftp init --user $SFTP_username --passwd $FTP_password --insecure sftp://runcloud@1.111.111.11/home/runcloud/webapps/mywebsite/wp-content/themes/mywebsiteTheme

Worked for me +

I have the same issue, I tried adding --insecure. still not working

 

image: atlassian/default-image:2
pipelines:
default:
- step:
name: 'Deployment to Staging'
deployment: staging
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp init --user $SFTP_Username --passwd $SFTP_Password --insecure sftp://111.111.111.111/

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,249 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you