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

Help runners+sftp Connection refused

Админ February 17, 2023

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.
February 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

Админ February 20, 2023

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

0 votes
Админ February 27, 2023

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

0 votes
Админ February 20, 2023

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.
February 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.

Админ February 21, 2023

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
Product Admin
TAGS
AUG Leaders

Atlassian Community Events