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

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,554,539
Community Members
 
Community Events
184
Community Groups

Bamboo SSH task SSH key file format

I have tried puttygen to format a private key for Bamboo SSH task , as well as the id_rsa file that is generated from the ssh-keygen -t RSA command. Both failed?
My process is as followed:

On my App server run as bamboo user:

ssh-keygen -t RSA

...(NO Password)

id_rsa.pub >> .ssh/authorizedkeys

change the permissions on the files and folders.. DONE.

Download the private key id_rsa to local machine: Puttygen to .ppk format and/or use the id_rsa file to upload to bamboo KEY for SSH task..

This process causes Authorization Failure.

Is there a specific format the key needs to be or am i doing the process wrong?
I do not have dedicated bamboo elastic instance, i just use the linux s3 64 bit one they offer to build and deploy to my server..
Any and all insight is appreciated.

Thank you for your diligence.

3 answers

1 accepted

1 vote
Answer accepted

Normally you would run ssh-keygen on the machine running Bamboo as the private key 'belongs' to the Bamboo machine not the remote machine. But you can get it working either way.

On the remote machine you need to add the generated id_rsa.pub file to the ~/.ssh/authorized_keys file of the account you want to connect under (In your original comment you have the file called authorizedkeys). Note: IIRC both the .ssh directory and the authorized_keys file must NOT be group nor world readable.

If you need to specify a password or not when uploading the id_rsa file to Bamboo depends on if the id_rsa file was created with password encryption or not.

If you are not sure if your id_rsa file is encrypted open the file in a text editor. If it begins with

-----BEGIN RSA PRIVATE KEY-----

Proc-Type: 4,ENCRYPTED

DEK-Info: DES-EDE3-CBC,7D86EF6581EFD29E

then it is encrypted. If it just starts with

-----BEGIN RSA PRIVATE KEY-----

then it is not encrypted.

I am getting an error while following this article.

failed to connect host.

The id_rsa file as generated by ssh-keygen works for me (that's for a local install of Bamboo not OnDemand though).

Can you give me a high level of your process?
Your on remote host, ssh-keygen.. take the id_rsa upload it to bamboo server for ssh task or scp task and it works? when you run build it successfully connects to remote host from bamboo server? with or without password?

bamboo on demand

version 5.2-OD-3

build#: 4000

builddate: 10/22/2013

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events