SFTP deployment trying root ssh keys

Gennari Alexandre March 28, 2021

Hello

 

I'm trying to set-up a SFTP deployment pipelines.

This is my bitbucket-pipelines.yml:

1.png

 

But, when I'm trying to run a pipeline, I got this error: $USER_PIPELINES@$SERVER: Permission denied (publickey).

The user I'm using to deploy is "pipelines" on my Debian System.

The logs are also showing this : 

2.png

Why the pipeline is searching the key trough /root folder?

I checked into /home/pipelines/.ssh/authorized_keys: I have the file and permissions are corrects.

I checked into the config file /etc/ssh/sshd_config : AuthorizedKeysFile %h/.ssh/authorized_keys

I don't know what to check... If anyone have a solution...

Best regards

 

 

1 answer

1 accepted

1 vote
Answer accepted
Gennari Alexandre March 28, 2021

Solved: needed to remove the PASSWORD on variables...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events