Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Help runners+sftp Connection refused

Hi! I have a problem, I can't understand why there is no connection. Please have any ideas? from other sources, I connect to my host without any problems. and this problem is also with rsync deploy

Help me pleasebitbucket-pipeline.jpgbuil.jpg

3 answers

1 vote
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 17, 2023

Hi 
For this case you need to pass SSH_KEY directly to the pipe

SSH_KEY An alternate SSH_KEY to use instead of the key configured in the Bitbucket Pipelines admin screens (which is used by default). This should be encoded as per the instructions given in the docs for using multiple ssh keys
script:
  - pipe: atlassian/sftp-deploy:0.5.11
    variables:
      USER: 'ec2-user'
      SERVER: '127.0.0.1'
      REMOTE_PATH: '/var/www/build/'
      LOCAL_PATH: 'build'
      SSH_KEY: $MY_SSH_KEY
      DEBUG: 'true'

 

script:
  - pipe: atlassian/rsync-deploy:0.8.1
    variables:
      USER: 'ec2-user'
      SERVER: '127.0.0.1'
      REMOTE_PATH: '/var/www/build/'
      LOCAL_PATH: 'build'
      SSH_KEY: $MY_SSH_KEY
      DEBUG: 'true'

 

Best regards,
Oleksandr Kyrdan

thank you for being with me, I added my keys, but still a mistake12.jpg

Hi! my problem is relevant. I'm not getting anywhere. I did curl, in all cases it was refused. Maybe you have blocked IP addresses and therefore my connections are being reset.photo1677484072 (2).jpegphoto1677484072 (1).jpegphoto1677484072.jpeg

I don't understand what I'm doing wrong. Please help mersync1.jpgrsync12.jpg

Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 20, 2023

Make sure you encode your SSH_KEY accordingly:

Linux

base64 -w 0 < my_ssh_key

Mac OS X

base64 < my_ssh_key

and copy/paste the value without trailing symbols.

 

To validate base64 encoded SSH_KEY, try to decode it and use for the direct connection on your local machine.

Thank you for helping me. I added the key and tested it, if the key is incorrect, the log informs me, but with the correct connection it is refused. The local host connects without problemscorrect.jpgincorrect.jpglocal.jpg

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events