Hi All,
We have a situation in our Bamboo plan , where we need to do ssh to two different Linux machine based on release branch ( build for older code happens on lets say BuildMachine1 and for new code happens on BuildMachine1 ).
Bamboo Server connect via ssh to build server in order to execute this.
Now for 2 different release we need to connect to 2 different machine ,keeping the jobs/tasks same.
In SSH task, we can over ride SERVER_HOSTNAME , but its not possible to provide password on run time.So in this case somebody has to update all the ssh tasks manually to run build for 2 different branches.
Not at all a good option !!
Can you please help in case we can achieve this in some other way.
Hi @Ashish Panwar ,
You will have to generate a SSH Key pair (private and public key) and copy the SSH public key to the remote server (server where you are SSH into) placing it under authorized_keys.
Alternatively, you can make use of SSH keys without passphrase.
Kind regards,
Rafael
Hi Rafael,
Thanks for the input but Server on which bamboo is hosted is not in our control so only way to access build server to do the build is to use Out of box Bamboo functionality of ssh task .
Now comes the situation where two different build server needs to be accessed via ssh based on which version of build we want to do.
Is there anyway we can achieve from Bamboo ? Seems like a real world scenario .
Regards,
Ashish Panwar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ashish Panwar ,
Perhaps you should consider using "authorized_keys". Here is an example - https://support.hostway.com/hc/en-us/articles/115001569710-Linux-Server-Access-Using-SSH-Key-without-Password
Kind regards,
Rafael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.