Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket pipelines remote host access

Kamran Kashmiri
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 9, 2018

Hi, i am new to pipelines and able to generate ssh key pair under pipelines setting and also added to my remote host. Luckily when adding host name and by clicking on fetch is also working and i m seeing fingerprint :)

Steps followed from this link

https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html

screenshot 1

 

screenshot 1.png


The question is does above steps enough to execute ssh instruction to my remote host or am i missing something.
For instance i m trying to run following script under pipelines steps but getting timeout error:

ssh user@remotehost "pwd"

 

screenshot 2

screenshot 2.png



This suppose to give me present working directory of remote host but getting connection timeout error. Any help would be appreciated?

 

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 16, 2018

Hi Kamran,

The SSH UI does not add the public key to your SSH server. You need to do that manually. Add the public key in the UI to the "~/.ssh/authorised_keys" file on your server.

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events