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.
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-----
I am getting an error while following this article.
failed to connect host.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The id_rsa file as generated by ssh-keygen works for me (that's for a local install of Bamboo not OnDemand though).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
bamboo on demand
version 5.2-OD-3
build#: 4000
builddate: 10/22/2013
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.